Skip to content

Commit 1944894

Browse files
committed
Add warn(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 1944894

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+
#![warn(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
@@ -19,6 +19,7 @@
1919
#![feature(never_type)]
2020
#![feature(rustdoc_internals)]
2121
#![feature(stmt_expr_attributes)]
22+
#![warn(unreachable_pub)]
2223
// tidy-alphabetical-end
2324

2425
pub mod util {

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+
#![warn(unreachable_pub)]
56
// tidy-alphabetical-end
67

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

0 commit comments

Comments
 (0)