We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
warn(unreachable_pub)
rustc_type_ir
1 parent e4b1e28 commit 3e09c45Copy full SHA for 3e09c45
compiler/rustc_type_ir/src/fold.rs
@@ -354,7 +354,7 @@ struct Shifter<I: Interner> {
354
}
355
356
impl<I: Interner> Shifter<I> {
357
- pub fn new(cx: I, amount: u32) -> Self {
+ fn new(cx: I, amount: u32) -> Self {
358
Shifter { cx, current_index: ty::INNERMOST, amount }
359
360
compiler/rustc_type_ir/src/lib.rs
@@ -6,6 +6,7 @@
6
)]
7
#![cfg_attr(feature = "nightly", allow(internal_features))]
8
#![cfg_attr(not(bootstrap), allow(rustc::usage_of_type_ir_inherent))]
9
+#![warn(unreachable_pub)]
10
// tidy-alphabetical-end
11
12
extern crate self as rustc_type_ir;
0 commit comments