about summary refs log tree commit diff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-03-06 14:25:44 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2025-03-08 08:41:43 +1100
commit9212e31c92aba29fac1c1e05a258abe36dd0afee (patch)
tree09152c971d35e3689ae6aa3007c2492eca4f0c84 /Cargo.toml
parentbeba32cebb4fb2ef8f02c4fc898a9d31f1b03c61 (diff)
downloadrust-9212e31c92aba29fac1c1e05a258abe36dd0afee.tar.gz
rust-9212e31c92aba29fac1c1e05a258abe36dd0afee.zip
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)]`.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 4e952ccfc73..e2d032e0806 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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]