Add unreachable_pub to the default lints for compiler/ crates.

And fix the new errors in the handful of crates that didn't have a
`#![warn(unreachable_pub)]`.
This commit is contained in:
Nicholas Nethercote 2025-03-06 14:25:44 +11:00
parent beba32cebb
commit 9212e31c92
9 changed files with 16 additions and 15 deletions

View file

@ -74,6 +74,7 @@ exclude = [
# FIXME(edition_2024): Change this to `-Wrust_2024_idioms` when all of the
# individual lints are satisfied.
keyword_idents_2024 = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "warn"
[profile.release.package.rustc-rayon-core]