From 6c84c55c9f279b9ea1f77c7cac3a63f0c89ab90a Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Tue, 27 Aug 2024 15:12:46 +1000 Subject: [PATCH] Add `warn(unreachable_pub)` to `rustc_lexer`. --- compiler/rustc_lexer/src/lib.rs | 1 + 1 file changed, 1 insertion(+) 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;