File tree 1 file changed +4
-6
lines changed
compiler/rustc_hir_analysis/src/coherence
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -433,14 +433,12 @@ pub fn coerce_unsized_info<'tcx>(
433
433
// something more accepting, but we use
434
434
// equality because we want to be able to
435
435
// perform this check without computing
436
- // variance where possible. (This is because
437
- // we may have to evaluate constraint
436
+ // variance or constraining opaque types' hidden types.
437
+ // (This is because we may have to evaluate constraint
438
438
// expressions in the course of execution.)
439
439
// See e.g., #41936.
440
- if let Ok ( ok) = infcx. at ( & cause, param_env) . eq ( DefineOpaqueTypes :: No , a, b) {
441
- if ok. obligations . is_empty ( ) {
442
- return None ;
443
- }
440
+ if a == b {
441
+ return None ;
444
442
}
445
443
446
444
// Collect up all fields that were significantly changed
You can’t perform that action at this time.
0 commit comments