Skip to content

Commit

Permalink
Add warn(unreachable_pub) to rustc_type_ir.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Sep 2, 2024
1 parent e4b1e28 commit 3e09c45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_type_ir/src/fold.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
}
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_type_ir/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3e09c45

Please sign in to comment.