diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2025-07-19 22:14:12 +0200 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2025-07-20 18:27:30 +0200 |
| commit | af07c08c60fe779c2e73c561403cb5edf4f15e9b (patch) | |
| tree | cfa284154ca3c890154310bf25631ac99b188c7e /compiler/rustc_pattern_analysis | |
| parent | 9b01de20e10376d379ae32baa6a315d8e30cb351 (diff) | |
| download | rust-af07c08c60fe779c2e73c561403cb5edf4f15e9b.tar.gz rust-af07c08c60fe779c2e73c561403cb5edf4f15e9b.zip | |
Silence a warning
Diffstat (limited to 'compiler/rustc_pattern_analysis')
| -rw-r--r-- | compiler/rustc_pattern_analysis/tests/common/mod.rs | 6 |
1 files 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 8497521881a..94f2a127b9b 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)] |
