Skip to content

Commit

Permalink
Add warn(unreachable_pub) to rustc_lexer.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Aug 27, 2024
1 parent a941a4b commit 6c84c55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_lexer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6c84c55

Please sign in to comment.