From 76bd802403ec5aa3e478fc628ad71529fc26417a Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Thu, 29 Aug 2024 15:14:32 +1000 Subject: [PATCH] Add `warn(unreachable_pub)` to `rustc_parse_format`. --- compiler/rustc_parse_format/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_parse_format/src/lib.rs b/compiler/rustc_parse_format/src/lib.rs index cb758150789b..51084ef4441d 100644 --- a/compiler/rustc_parse_format/src/lib.rs +++ b/compiler/rustc_parse_format/src/lib.rs @@ -13,6 +13,7 @@ html_playground_url = "https://play.rust-lang.org/", test(attr(deny(warnings))) )] +#![warn(unreachable_pub)] // tidy-alphabetical-end use std::{iter, str, string};