Skip to content

Commit a274619

Browse files
committed
nyaaaa
1 parent 25f9e09 commit a274619

File tree

1 file changed

+3
-1
lines changed
  • compiler/rustc_next_trait_solver/src/solve/eval_ctxt

1 file changed

+3
-1
lines changed

compiler/rustc_next_trait_solver/src/solve/eval_ctxt/canonical.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,9 @@ where
371371
if let Some(v) = opt_values[ty::BoundVar::from_usize(index)] {
372372
if let CanonicalVarKind::Ty { universe: _, sub_root } = info.kind {
373373
if let Some(prev) = var_values.get(sub_root.as_usize()) {
374-
match (v.expect_ty().kind(), prev.expect_ty().kind()) {
374+
let v = delegate.shallow_resolve(v.expect_ty());
375+
let prev = delegate.shallow_resolve(prev.expect_ty());
376+
match (v.kind(), prev.kind()) {
375377
(ty::Infer(ty::TyVar(vid)), ty::Infer(ty::TyVar(sub_root))) => {
376378
delegate.sub_ty_vids_raw(vid, sub_root)
377379
}

0 commit comments

Comments
 (0)