From af07c08c60fe779c2e73c561403cb5edf4f15e9b Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sat, 19 Jul 2025 22:14:12 +0200 Subject: [PATCH] Silence a warning --- compiler/rustc_pattern_analysis/tests/common/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/rustc_pattern_analysis/tests/common/mod.rs b/compiler/rustc_pattern_analysis/tests/common/mod.rs index 8497521881a2..94f2a127b9b0 100644 --- a/compiler/rustc_pattern_analysis/tests/common/mod.rs +++ b/compiler/rustc_pattern_analysis/tests/common/mod.rs @@ -1,4 +1,4 @@ -#![allow(dead_code)] +#![allow(dead_code, unreachable_pub)] use rustc_pattern_analysis::constructor::{ Constructor, ConstructorSet, IntRange, MaybeInfiniteInt, RangeEnd, VariantVisibility, }; @@ -23,8 +23,8 @@ fn init_tracing() { .try_init(); } -pub const UNIT: Ty = Ty::Tuple(&[]); -pub const NEVER: Ty = Ty::Enum(&[]); +pub(super) const UNIT: Ty = Ty::Tuple(&[]); +pub(super) const NEVER: Ty = Ty::Enum(&[]); /// A simple set of types. #[derive(Debug, Copy, Clone, PartialEq, Eq)]