Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #144479 - cjgillot:incr-privacy-mod, r=petrochenkov
Perform check_private_in_public by module.
Based on https://github.com/rust-lang/rust/pull/116316