We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23561c6 commit 144c0d5Copy full SHA for 144c0d5
src/librustc/middle/region.rs
@@ -706,7 +706,7 @@ impl<'tcx> ScopeTree {
706
// "Modeling closures" section of the README in
707
// infer::region_constraints for more details.
708
let a_root_scope = a_ancestors[a_index];
709
- let b_root_scope = a_ancestors[a_index];
+ let b_root_scope = b_ancestors[b_index];
710
return match (a_root_scope.data(), b_root_scope.data()) {
711
(ScopeData::Destruction(a_root_id),
712
ScopeData::Destruction(b_root_id)) => {
0 commit comments