From 89deb3c7420bf5a3643a53132cca4e1d9e0ebc80 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Fri, 30 Aug 2024 13:21:53 +1000 Subject: [PATCH] Add `warn(unreachable_pub)` to `rustc_symbol_mangling`. --- compiler/rustc_symbol_mangling/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_symbol_mangling/src/lib.rs b/compiler/rustc_symbol_mangling/src/lib.rs index dea4eb08c76..0c97cda81c8 100644 --- a/compiler/rustc_symbol_mangling/src/lib.rs +++ b/compiler/rustc_symbol_mangling/src/lib.rs @@ -93,6 +93,7 @@ #![doc(rust_logo)] #![feature(let_chains)] #![feature(rustdoc_internals)] +#![warn(unreachable_pub)] // tidy-alphabetical-end use rustc_hir::def::DefKind;