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 680ff86 commit 5481201Copy full SHA for 5481201
compiler/rustc_typeck/src/check/upvar.rs
@@ -2278,7 +2278,7 @@ fn determine_place_ancestry_relation(
2278
let projections_b = &place_b.projections;
2279
2280
let same_initial_projections =
2281
- 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);
2282
2283
if same_initial_projections {
2284
// First min(n, m) projections are the same
0 commit comments