File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
compiler/rustc_hir_analysis/src/coherence Expand file tree Collapse file tree 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>(
433433 // something more accepting, but we use
434434 // equality because we want to be able to
435435 // 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
438438 // expressions in the course of execution.)
439439 // 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 ;
444442 }
445443
446444 // Collect up all fields that were significantly changed
You can’t perform that action at this time.
0 commit comments