We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7f8ab5 commit cac7fc8Copy full SHA for cac7fc8
compiler/rustc_next_trait_solver/src/solve/eval_ctxt/canonical.rs
@@ -361,7 +361,9 @@ where
361
if let Some(v) = opt_values[ty::BoundVar::from_usize(index)] {
362
if let CanonicalVarKind::Ty { universe: _, sub_root } = info.kind {
363
if let Some(prev) = var_values.get(sub_root.as_usize()) {
364
- match (v.expect_ty().kind(), prev.expect_ty().kind()) {
+ let v = delegate.shallow_resolve(v.expect_ty());
365
+ let prev = delegate.shallow_resolve(prev.expect_ty());
366
+ match (v.kind(), prev.kind()) {
367
(ty::Infer(ty::TyVar(vid)), ty::Infer(ty::TyVar(sub_root))) => {
368
delegate.sub_ty_vids_raw(vid, sub_root)
369
}
0 commit comments