about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/src/lib.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-08-29 15:08:07 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-08-29 20:13:06 +1000
commite3062147deca0399ba533bd967532cbf4f419abf (patch)
tree15a43989e4af7322c7f907511b533b14eb6fcfb3 /compiler/rustc_monomorphize/src/lib.rs
parent8a8dd3f33e8c79bc5c1f06009e87ff120900b5c0 (diff)
downloadrust-e3062147deca0399ba533bd967532cbf4f419abf.tar.gz
rust-e3062147deca0399ba533bd967532cbf4f419abf.zip
Add `warn(unreachable_pub)` to `rustc_monomorphize`.
Diffstat (limited to 'compiler/rustc_monomorphize/src/lib.rs')
-rw-r--r--compiler/rustc_monomorphize/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_monomorphize/src/lib.rs b/compiler/rustc_monomorphize/src/lib.rs
index d6b0f9c4d28..b22e8e30465 100644
--- a/compiler/rustc_monomorphize/src/lib.rs
+++ b/compiler/rustc_monomorphize/src/lib.rs
@@ -1,5 +1,6 @@
 // tidy-alphabetical-start
 #![feature(array_windows)]
+#![warn(unreachable_pub)]
 // tidy-alphabetical-end
 
 use rustc_hir::lang_items::LangItem;