diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-27 11:49:59 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-27 11:49:59 +1000 |
| commit | d607cfb33602750ba9b8adc090abfde2087e0fd6 (patch) | |
| tree | 166f8f64569a91f924f7878343d1382134da13f8 /compiler/rustc_error_codes/src/lib.rs | |
| parent | e81fad2b4d0c907445c6df76adea65602134fda8 (diff) | |
| download | rust-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.rs | 1 |
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 |
