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