about summary refs log tree commit diff
path: root/compiler/rustc_next_trait_solver/src/lib.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-08-29 15:10:38 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-08-29 20:13:06 +1000
commit46ea798a94a9b5924518d64435e884f9d729b456 (patch)
tree6d2c563e604ecc40cb528da7a381a77affd606a0 /compiler/rustc_next_trait_solver/src/lib.rs
parente3062147deca0399ba533bd967532cbf4f419abf (diff)
downloadrust-46ea798a94a9b5924518d64435e884f9d729b456.tar.gz
rust-46ea798a94a9b5924518d64435e884f9d729b456.zip
Add `warn(unreachable_pub)` to `rustc_next_trait_solver`.
Diffstat (limited to 'compiler/rustc_next_trait_solver/src/lib.rs')
-rw-r--r--compiler/rustc_next_trait_solver/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_next_trait_solver/src/lib.rs b/compiler/rustc_next_trait_solver/src/lib.rs
index 0a5b4278058..ea244b5107a 100644
--- a/compiler/rustc_next_trait_solver/src/lib.rs
+++ b/compiler/rustc_next_trait_solver/src/lib.rs
@@ -4,6 +4,10 @@
 //! but were uplifted in the process of making the new trait solver generic.
 //! So if you got to this crate from the old solver, it's totally normal.
 
+// tidy-alphabetical-start
+#![warn(unreachable_pub)]
+// tidy-alphabetical-end
+
 pub mod canonicalizer;
 pub mod coherence;
 pub mod delegate;