Skip to content

Commit 6c84c55

Browse files
committed
Add warn(unreachable_pub) to rustc_lexer.
1 parent a941a4b commit 6c84c55

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_lexer/src

1 file changed

+1
-0
lines changed

compiler/rustc_lexer/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
// We want to be able to build this crate with a stable compiler,
2424
// so no `#![feature]` attributes should be added.
2525
#![deny(unstable_features)]
26+
#![warn(unreachable_pub)]
2627
// tidy-alphabetical-end
2728

2829
mod cursor;

0 commit comments

Comments
 (0)