Skip to content

Commit cac7fc8

Browse files
committed
nyaaaa
1 parent a7f8ab5 commit cac7fc8

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
@@ -361,7 +361,9 @@ where
361361
if let Some(v) = opt_values[ty::BoundVar::from_usize(index)] {
362362
if let CanonicalVarKind::Ty { universe: _, sub_root } = info.kind {
363363
if let Some(prev) = var_values.get(sub_root.as_usize()) {
364-
match (v.expect_ty().kind(), prev.expect_ty().kind()) {
364+
let v = delegate.shallow_resolve(v.expect_ty());
365+
let prev = delegate.shallow_resolve(prev.expect_ty());
366+
match (v.kind(), prev.kind()) {
365367
(ty::Infer(ty::TyVar(vid)), ty::Infer(ty::TyVar(sub_root))) => {
366368
delegate.sub_ty_vids_raw(vid, sub_root)
367369
}

0 commit comments

Comments
 (0)