We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fcfa51 commit 3660dd9Copy full SHA for 3660dd9
compiler/rustc_pattern_analysis/src/lib.rs
@@ -2,6 +2,7 @@
2
3
#![allow(rustc::untranslatable_diagnostic)]
4
#![allow(rustc::diagnostic_outside_of_impl)]
5
+#![feature(freeze)]
6
7
pub mod constructor;
8
#[cfg(feature = "rustc")]
@@ -90,9 +91,9 @@ pub trait PatCx: Sized + fmt::Debug {
90
91
/// Errors that can abort analysis.
92
type Error: fmt::Debug;
93
/// The index of an enum variant.
- type VariantIdx: Clone + index::Idx + fmt::Debug;
94
+ type VariantIdx: Clone + index::Idx + fmt::Debug + std::marker::Freeze;
95
/// A string literal
- type StrLit: Clone + PartialEq + fmt::Debug;
96
+ type StrLit: Clone + PartialEq + fmt::Debug + std::marker::Freeze;
97
/// Extra data to store in a match arm.
98
type ArmData: Copy + Clone + fmt::Debug;
99
/// Extra data to store in a pattern.
0 commit comments