about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/lib.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-08-29 15:13:12 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-08-29 20:13:06 +1000
commitcac04a1cb97f1339ab866051f7048786298e66b7 (patch)
treea0534cb7cd34bb5db084ab7810e2ab3dbb94ee85 /compiler/rustc_parse/src/lib.rs
parent46ea798a94a9b5924518d64435e884f9d729b456 (diff)
downloadrust-cac04a1cb97f1339ab866051f7048786298e66b7.tar.gz
rust-cac04a1cb97f1339ab866051f7048786298e66b7.zip
Add `warn(unreachable_pub)` to `rustc_parser`.
Diffstat (limited to 'compiler/rustc_parse/src/lib.rs')
-rw-r--r--compiler/rustc_parse/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/lib.rs b/compiler/rustc_parse/src/lib.rs
index 37079271493..788bb732ef7 100644
--- a/compiler/rustc_parse/src/lib.rs
+++ b/compiler/rustc_parse/src/lib.rs
@@ -11,6 +11,7 @@
 #![feature(if_let_guard)]
 #![feature(iter_intersperse)]
 #![feature(let_chains)]
+#![warn(unreachable_pub)]
 // tidy-alphabetical-end
 
 use std::path::Path;