Skip to content

Commit 3e09c45

Browse files
committed
Add warn(unreachable_pub) to rustc_type_ir.
1 parent e4b1e28 commit 3e09c45

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: compiler/rustc_type_ir/src/fold.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ struct Shifter<I: Interner> {
354354
}
355355

356356
impl<I: Interner> Shifter<I> {
357-
pub fn new(cx: I, amount: u32) -> Self {
357+
fn new(cx: I, amount: u32) -> Self {
358358
Shifter { cx, current_index: ty::INNERMOST, amount }
359359
}
360360
}

Diff for: compiler/rustc_type_ir/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
)]
77
#![cfg_attr(feature = "nightly", allow(internal_features))]
88
#![cfg_attr(not(bootstrap), allow(rustc::usage_of_type_ir_inherent))]
9+
#![warn(unreachable_pub)]
910
// tidy-alphabetical-end
1011

1112
extern crate self as rustc_type_ir;

0 commit comments

Comments
 (0)