Skip to content

Commit af07c08

Browse files
committed
Silence a warning
1 parent 9b01de2 commit af07c08

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_pattern_analysis/tests/common

1 file changed

+3
-3
lines changed

compiler/rustc_pattern_analysis/tests/common/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![allow(dead_code)]
1+
#![allow(dead_code, unreachable_pub)]
22
use rustc_pattern_analysis::constructor::{
33
Constructor, ConstructorSet, IntRange, MaybeInfiniteInt, RangeEnd, VariantVisibility,
44
};
@@ -23,8 +23,8 @@ fn init_tracing() {
2323
.try_init();
2424
}
2525

26-
pub const UNIT: Ty = Ty::Tuple(&[]);
27-
pub const NEVER: Ty = Ty::Enum(&[]);
26+
pub(super) const UNIT: Ty = Ty::Tuple(&[]);
27+
pub(super) const NEVER: Ty = Ty::Enum(&[]);
2828

2929
/// A simple set of types.
3030
#[derive(Debug, Copy, Clone, PartialEq, Eq)]

0 commit comments

Comments
 (0)