Skip to content

Commit 646a627

Browse files
committed
Add deny(unreachable_pub) to several crates.
It requires no additonal changes to these crates, but will prevent unnecessary `pub`s in the future.
1 parent 13a5289 commit 646a627

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

compiler/rustc_abi/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#![cfg_attr(feature = "nightly", doc(rust_logo))]
44
#![cfg_attr(feature = "nightly", feature(rustdoc_internals))]
55
#![cfg_attr(feature = "nightly", feature(step_trait))]
6+
#![deny(unreachable_pub)]
67
// tidy-alphabetical-end
78

89
use std::fmt;

compiler/rustc_ast/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
// tidy-alphabetical-start
88
#![allow(internal_features)]
9+
#![deny(unreachable_pub)]
910
#![doc(
1011
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
1112
test(attr(deny(warnings)))

compiler/rustc_ast_ir/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#![cfg_attr(feature = "nightly", allow(internal_features))]
33
#![cfg_attr(feature = "nightly", feature(never_type))]
44
#![cfg_attr(feature = "nightly", feature(rustc_attrs))]
5+
#![deny(unreachable_pub)]
56
// tidy-alphabetical-end
67

78
#[cfg(feature = "nightly")]

0 commit comments

Comments
 (0)