Add warn(unreachable_pub) to rustc_type_ir.

This commit is contained in:
Nicholas Nethercote 2024-08-30 16:30:18 +10:00
parent e4b1e28033
commit 3e09c450b4
2 changed files with 2 additions and 1 deletions

View File

@ -354,7 +354,7 @@ struct Shifter<I: Interner> {
}
impl<I: Interner> Shifter<I> {
pub fn new(cx: I, amount: u32) -> Self {
fn new(cx: I, amount: u32) -> Self {
Shifter { cx, current_index: ty::INNERMOST, amount }
}
}

View File

@ -6,6 +6,7 @@
)]
#![cfg_attr(feature = "nightly", allow(internal_features))]
#![cfg_attr(not(bootstrap), allow(rustc::usage_of_type_ir_inherent))]
#![warn(unreachable_pub)]
// tidy-alphabetical-end
extern crate self as rustc_type_ir;