about summary refs log tree commit diff
path: root/compiler/rustc_macros/src/lib.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-08-29 09:01:17 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-08-29 20:13:06 +1000
commit4b92682530769237564a440c1968feb15fc89709 (patch)
treec9935801533089bb03fccd70965b8d6db16df529 /compiler/rustc_macros/src/lib.rs
parent6cf068db566de080dfa7ed24a216ea3aed2b98ce (diff)
downloadrust-4b92682530769237564a440c1968feb15fc89709.tar.gz
rust-4b92682530769237564a440c1968feb15fc89709.zip
Add `warn(unreachable_pub)` to `rustc_macros`.
Diffstat (limited to 'compiler/rustc_macros/src/lib.rs')
-rw-r--r--compiler/rustc_macros/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_macros/src/lib.rs b/compiler/rustc_macros/src/lib.rs
index 929bc2df6f6..f46c795b956 100644
--- a/compiler/rustc_macros/src/lib.rs
+++ b/compiler/rustc_macros/src/lib.rs
@@ -6,6 +6,7 @@
 #![feature(proc_macro_diagnostic)]
 #![feature(proc_macro_span)]
 #![feature(proc_macro_tracked_env)]
+#![warn(unreachable_pub)]
 // tidy-alphabetical-end
 
 use proc_macro::TokenStream;