Skip to content

Commit 552585c

Browse files
committed
Add warn(unreachable_pub) to rustc_type_ir.
1 parent cb49f91 commit 552585c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compiler/rustc_type_ir/src/fold.rs

Lines changed: 1 addition & 1 deletion
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
}

compiler/rustc_type_ir/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
feature(associated_type_defaults, never_type, rustc_attrs, negative_impls)
66
)]
77
#![cfg_attr(feature = "nightly", allow(internal_features))]
8+
#![warn(unreachable_pub)]
89
// tidy-alphabetical-end
910

1011
extern crate self as rustc_type_ir;

0 commit comments

Comments
 (0)