File tree 1 file changed +3
-2
lines changed
compiler/rustc_pattern_analysis/src
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
#![ allow( rustc:: untranslatable_diagnostic) ]
4
4
#![ allow( rustc:: diagnostic_outside_of_impl) ]
5
+ #![ feature( freeze) ]
5
6
6
7
pub mod constructor;
7
8
#[ cfg( feature = "rustc" ) ]
@@ -90,9 +91,9 @@ pub trait PatCx: Sized + fmt::Debug {
90
91
/// Errors that can abort analysis.
91
92
type Error : fmt:: Debug ;
92
93
/// The index of an enum variant.
93
- type VariantIdx : Clone + index:: Idx + fmt:: Debug ;
94
+ type VariantIdx : Clone + index:: Idx + fmt:: Debug + std :: marker :: Freeze ;
94
95
/// A string literal
95
- type StrLit : Clone + PartialEq + fmt:: Debug ;
96
+ type StrLit : Clone + PartialEq + fmt:: Debug + std :: marker :: Freeze ;
96
97
/// Extra data to store in a match arm.
97
98
type ArmData : Copy + Clone + fmt:: Debug ;
98
99
/// Extra data to store in a pattern.
You can’t perform that action at this time.
0 commit comments