about summary refs log tree commit diff
path: root/compiler/rustc_serialize
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-09-03 01:27:20 +0000
committerbors <bors@rust-lang.org>2024-09-03 01:27:20 +0000
commit6199b69c53a8c275ca3cd59647ea0af5ca29aae2 (patch)
tree75ddc29eb734ea11a6652ce3f688a3037095bba3 /compiler/rustc_serialize
parent2251572086f12186b5a499bf55dee82145173ed3 (diff)
parent88b6a78d0b8b7661db8bea0d0743652bcb9a4600 (diff)
downloadrust-6199b69c53a8c275ca3cd59647ea0af5ca29aae2.tar.gz
rust-6199b69c53a8c275ca3cd59647ea0af5ca29aae2.zip
Auto merge of #129777 - nnethercote:unreachable_pub-4, r=Urgau
Add `unreachable_pub`, round 4

A follow-up to #129732.

r? `@Urgau`
Diffstat (limited to 'compiler/rustc_serialize')
-rw-r--r--compiler/rustc_serialize/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_serialize/src/lib.rs b/compiler/rustc_serialize/src/lib.rs
index f0e1630c650..b7977a848ce 100644
--- a/compiler/rustc_serialize/src/lib.rs
+++ b/compiler/rustc_serialize/src/lib.rs
@@ -16,6 +16,7 @@
 #![feature(never_type)]
 #![feature(ptr_sub_ptr)]
 #![feature(rustdoc_internals)]
+#![warn(unreachable_pub)]
 // tidy-alphabetical-end
 
 pub use self::serialize::{Decodable, Decoder, Encodable, Encoder};