about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-08-27 14:33:24 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-08-27 14:33:24 +1000
commit46fe09f3f3dd724a9a9f1af50f3408a4f8dea25a (patch)
treeb5e393f1adfac28e4b99e365050fcf02e8fcf2df
parent37becf7bdcff5037cbb214277eb74ef17d8527f0 (diff)
downloadrust-46fe09f3f3dd724a9a9f1af50f3408a4f8dea25a.tar.gz
rust-46fe09f3f3dd724a9a9f1af50f3408a4f8dea25a.zip
Add `warn(unreachable_pub)` to `rustc_index`.
-rw-r--r--compiler/rustc_index/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_index/src/lib.rs b/compiler/rustc_index/src/lib.rs
index b9d2a43206b..eb47ac3c68e 100644
--- a/compiler/rustc_index/src/lib.rs
+++ b/compiler/rustc_index/src/lib.rs
@@ -3,6 +3,7 @@
 #![cfg_attr(feature = "nightly", allow(internal_features))]
 #![cfg_attr(feature = "nightly", feature(extend_one, new_uninit, step_trait, test))]
 #![cfg_attr(feature = "nightly", feature(new_zeroed_alloc))]
+#![warn(unreachable_pub)]
 // tidy-alphabetical-end
 
 pub mod bit_set;