about summary refs log tree commit diff
path: root/compiler/rustc_error_codes/src/lib.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-08-27 11:49:59 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-08-27 11:49:59 +1000
commitd607cfb33602750ba9b8adc090abfde2087e0fd6 (patch)
tree166f8f64569a91f924f7878343d1382134da13f8 /compiler/rustc_error_codes/src/lib.rs
parente81fad2b4d0c907445c6df76adea65602134fda8 (diff)
downloadrust-d607cfb33602750ba9b8adc090abfde2087e0fd6.tar.gz
rust-d607cfb33602750ba9b8adc090abfde2087e0fd6.zip
Add `warn(unreachable_pub)` to `rustc_error_codes`.
Diffstat (limited to 'compiler/rustc_error_codes/src/lib.rs')
-rw-r--r--compiler/rustc_error_codes/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_error_codes/src/lib.rs b/compiler/rustc_error_codes/src/lib.rs
index 2a7bc2501c0..150f99a3ee7 100644
--- a/compiler/rustc_error_codes/src/lib.rs
+++ b/compiler/rustc_error_codes/src/lib.rs
@@ -6,6 +6,7 @@
 #![deny(rustdoc::invalid_codeblock_attributes)]
 #![doc(rust_logo)]
 #![feature(rustdoc_internals)]
+#![warn(unreachable_pub)]
 // tidy-alphabetical-end
 
 // This higher-order macro defines the error codes that are in use. It is used