Skip to content

Commit 3ca51e0

Browse files
committed
Silence a warning
1 parent deae812 commit 3ca51e0

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
};
@@ -22,8 +22,8 @@ fn init_tracing() {
2222
.try_init();
2323
}
2424

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

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

0 commit comments

Comments
 (0)