about summary refs log tree commit diff
path: root/compiler/rustc_lexer
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-08-27 15:12:46 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-08-27 15:12:46 +1000
commit6c84c55c9f279b9ea1f77c7cac3a63f0c89ab90a (patch)
tree82aefc08d630df354971c351d27277af209b7ff8 /compiler/rustc_lexer
parenta941a4be77dbf2953d23bf89947d58abfca0a824 (diff)
downloadrust-6c84c55c9f279b9ea1f77c7cac3a63f0c89ab90a.tar.gz
rust-6c84c55c9f279b9ea1f77c7cac3a63f0c89ab90a.zip
Add `warn(unreachable_pub)` to `rustc_lexer`.
Diffstat (limited to 'compiler/rustc_lexer')
-rw-r--r--compiler/rustc_lexer/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_lexer/src/lib.rs b/compiler/rustc_lexer/src/lib.rs
index 2116ba6c079..31fdd2d7cec 100644
--- a/compiler/rustc_lexer/src/lib.rs
+++ b/compiler/rustc_lexer/src/lib.rs
@@ -23,6 +23,7 @@
 // We want to be able to build this crate with a stable compiler,
 // so no `#![feature]` attributes should be added.
 #![deny(unstable_features)]
+#![warn(unreachable_pub)]
 // tidy-alphabetical-end
 
 mod cursor;