File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
compiler/rustc_typeck/src/check Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -228,9 +228,15 @@ fn ensure_drop_predicates_are_implied_by_item_defn<'tcx>(
228
228
let predicate = predicate. kind ( ) ;
229
229
let p = p. kind ( ) ;
230
230
match ( predicate. skip_binder ( ) , p. skip_binder ( ) ) {
231
- ( ty:: PredicateKind :: Trait ( a) , ty:: PredicateKind :: Trait ( b) ) => {
232
- relator. relate ( predicate. rebind ( a) , p. rebind ( b) ) . is_ok ( )
233
- }
231
+ ( ty:: PredicateKind :: Trait ( a) , ty:: PredicateKind :: Trait ( b) ) => relator
232
+ . relate (
233
+ predicate. rebind ( ty:: TraitPredicate {
234
+ constness : ty:: BoundConstness :: NotConst ,
235
+ ..a
236
+ } ) ,
237
+ p. rebind ( b) ,
238
+ )
239
+ . is_ok ( ) ,
234
240
( ty:: PredicateKind :: Projection ( a) , ty:: PredicateKind :: Projection ( b) ) => {
235
241
relator. relate ( predicate. rebind ( a) , p. rebind ( b) ) . is_ok ( )
236
242
}
You can’t perform that action at this time.
0 commit comments