File tree 1 file changed +2
-3
lines changed
compiler/rustc_middle/src/ty
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -121,11 +121,9 @@ impl<'tcx> Predicate<'tcx> {
121
121
/// unsoundly accept some programs. See #91068.
122
122
#[ inline]
123
123
pub fn allow_normalization ( self ) -> bool {
124
- // Keep this in sync with the one in `rustc_type_ir::inherent`!
125
124
match self . kind ( ) . skip_binder ( ) {
126
125
PredicateKind :: Clause ( ClauseKind :: WellFormed ( _) )
127
- | PredicateKind :: AliasRelate ( ..)
128
- | PredicateKind :: NormalizesTo ( ..) => false ,
126
+ | PredicateKind :: AliasRelate ( ..) => false ,
129
127
PredicateKind :: Clause ( ClauseKind :: Trait ( _) )
130
128
| PredicateKind :: Clause ( ClauseKind :: HostEffect ( ..) )
131
129
| PredicateKind :: Clause ( ClauseKind :: RegionOutlives ( _) )
@@ -137,6 +135,7 @@ impl<'tcx> Predicate<'tcx> {
137
135
| PredicateKind :: Coerce ( _)
138
136
| PredicateKind :: Clause ( ClauseKind :: ConstEvaluatable ( _) )
139
137
| PredicateKind :: ConstEquate ( _, _)
138
+ | PredicateKind :: NormalizesTo ( ..)
140
139
| PredicateKind :: Ambiguous => true ,
141
140
}
142
141
}
You can’t perform that action at this time.
0 commit comments