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 1, 2024
1 parent 40842c5 commit 22e8476
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 @@ -5,6 +5,7 @@
feature(associated_type_defaults, never_type, rustc_attrs, negative_impls)
)]
#![cfg_attr(feature = "nightly", allow(internal_features))]
#![warn(unreachable_pub)]
// tidy-alphabetical-end

extern crate self as rustc_type_ir;
Expand Down

0 comments on commit 22e8476

Please sign in to comment.