We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25f9e09 commit a274619Copy full SHA for a274619
compiler/rustc_next_trait_solver/src/solve/eval_ctxt/canonical.rs
@@ -371,7 +371,9 @@ where
371
if let Some(v) = opt_values[ty::BoundVar::from_usize(index)] {
372
if let CanonicalVarKind::Ty { universe: _, sub_root } = info.kind {
373
if let Some(prev) = var_values.get(sub_root.as_usize()) {
374
- match (v.expect_ty().kind(), prev.expect_ty().kind()) {
+ let v = delegate.shallow_resolve(v.expect_ty());
375
+ let prev = delegate.shallow_resolve(prev.expect_ty());
376
+ match (v.kind(), prev.kind()) {
377
(ty::Infer(ty::TyVar(vid)), ty::Infer(ty::TyVar(sub_root))) => {
378
delegate.sub_ty_vids_raw(vid, sub_root)
379
}
0 commit comments