Add warn(unreachable_pub)
to rustc_type_ir
.
This commit is contained in:
parent
e4b1e28033
commit
3e09c450b4
@ -354,7 +354,7 @@ struct Shifter<I: Interner> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<I: Interner> Shifter<I> {
|
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 }
|
Shifter { cx, current_index: ty::INNERMOST, amount }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
)]
|
)]
|
||||||
#![cfg_attr(feature = "nightly", allow(internal_features))]
|
#![cfg_attr(feature = "nightly", allow(internal_features))]
|
||||||
#![cfg_attr(not(bootstrap), allow(rustc::usage_of_type_ir_inherent))]
|
#![cfg_attr(not(bootstrap), allow(rustc::usage_of_type_ir_inherent))]
|
||||||
|
#![warn(unreachable_pub)]
|
||||||
// tidy-alphabetical-end
|
// tidy-alphabetical-end
|
||||||
|
|
||||||
extern crate self as rustc_type_ir;
|
extern crate self as rustc_type_ir;
|
||||||
|
Loading…
Reference in New Issue
Block a user