We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6689493 commit ce633b2Copy full SHA for ce633b2
compiler/rustc_typeck/src/check/upvar.rs
@@ -2303,7 +2303,7 @@ fn determine_place_ancestry_relation(
2303
let projections_b = &place_b.projections;
2304
2305
let same_initial_projections =
2306
- iter::zip(projections_a, projections_b).all(|(proj_a, proj_b)| proj_a == proj_b);
+ iter::zip(projections_a, projections_b).all(|(proj_a, proj_b)| proj_a.kind == proj_b.kind);
2307
2308
if same_initial_projections {
2309
// First min(n, m) projections are the same
0 commit comments