about summary refs log tree commit diff
path: root/compiler/rustc_parse_format
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-08-29 15:14:32 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-08-29 20:13:06 +1000
commit76bd802403ec5aa3e478fc628ad71529fc26417a (patch)
tree4f6e15b256514dc83ef693be773308a3676005b1 /compiler/rustc_parse_format
parentcac04a1cb97f1339ab866051f7048786298e66b7 (diff)
downloadrust-76bd802403ec5aa3e478fc628ad71529fc26417a.tar.gz
rust-76bd802403ec5aa3e478fc628ad71529fc26417a.zip
Add `warn(unreachable_pub)` to `rustc_parse_format`.
Diffstat (limited to 'compiler/rustc_parse_format')
-rw-r--r--compiler/rustc_parse_format/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_parse_format/src/lib.rs b/compiler/rustc_parse_format/src/lib.rs
index cb758150789..51084ef4441 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};