Skip to content

Commit 3660dd9

Browse files
committed
fix rustc build for new promotion rules
1 parent 5fcfa51 commit 3660dd9

File tree

1 file changed

+3
-2
lines changed
  • compiler/rustc_pattern_analysis/src

1 file changed

+3
-2
lines changed

compiler/rustc_pattern_analysis/src/lib.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
#![allow(rustc::untranslatable_diagnostic)]
44
#![allow(rustc::diagnostic_outside_of_impl)]
5+
#![feature(freeze)]
56

67
pub mod constructor;
78
#[cfg(feature = "rustc")]
@@ -90,9 +91,9 @@ pub trait PatCx: Sized + fmt::Debug {
9091
/// Errors that can abort analysis.
9192
type Error: fmt::Debug;
9293
/// 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;
9495
/// A string literal
95-
type StrLit: Clone + PartialEq + fmt::Debug;
96+
type StrLit: Clone + PartialEq + fmt::Debug + std::marker::Freeze;
9697
/// Extra data to store in a match arm.
9798
type ArmData: Copy + Clone + fmt::Debug;
9899
/// Extra data to store in a pattern.

0 commit comments

Comments
 (0)