about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-08-27 12:59:20 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-08-27 12:59:20 +1000
commitbffa2244edd9cc210c7cd267fbacb77935cceaa6 (patch)
tree85ef49f7c0c1a72f5716b1fa0b90f3b75e3eb708 /compiler
parentfa1814099426482e08a5a9900017858a525e9304 (diff)
downloadrust-bffa2244edd9cc210c7cd267fbacb77935cceaa6.tar.gz
rust-bffa2244edd9cc210c7cd267fbacb77935cceaa6.zip
Add `warn(unreachable_pub)` to `rustc_hir`.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_hir/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_hir/src/lib.rs b/compiler/rustc_hir/src/lib.rs
index e517c3fd07a..c1a4a4497c7 100644
--- a/compiler/rustc_hir/src/lib.rs
+++ b/compiler/rustc_hir/src/lib.rs
@@ -10,6 +10,7 @@
 #![feature(never_type)]
 #![feature(rustc_attrs)]
 #![feature(variant_count)]
+#![warn(unreachable_pub)]
 // tidy-alphabetical-end
 
 extern crate self as rustc_hir;