@@ -58,7 +58,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
58
58
} ) ) ;
59
59
60
60
if let Some ( de) = opt_destruction_extent {
61
- unpack ! ( block = this. pop_scope( de , block) ) ;
61
+ unpack ! ( block = this. pop_scope( ( de , source_info ) , block) ) ;
62
62
}
63
63
}
64
64
StmtKind :: Let { remainder_scope, init_scope, pattern, initializer } => {
@@ -87,7 +87,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
87
87
} ) ) ;
88
88
89
89
if let Some ( de) = opt_destruction_extent {
90
- unpack ! ( block = this. pop_scope( de , block) ) ;
90
+ unpack ! ( block = this. pop_scope( ( de , source_info ) , block) ) ;
91
91
}
92
92
} else {
93
93
this. visit_bindings ( & pattern, & mut |this, _, _, node, span, _| {
@@ -114,7 +114,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
114
114
// Finally, we pop all the let scopes before exiting out from the scope of block
115
115
// itself.
116
116
for ( extent, source_info) in let_extent_stack. into_iter ( ) . rev ( ) {
117
- unpack ! ( block = this. pop_scope( extent, block) ) ;
117
+ unpack ! ( block = this. pop_scope( ( extent, source_info ) , block) ) ;
118
118
if this. seen_borrows . contains ( & extent) {
119
119
this. cfg . push_end_region ( block, source_info, extent) ;
120
120
}
@@ -125,7 +125,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
125
125
} ) ;
126
126
127
127
if let Some ( de) = opt_destruction_extent {
128
- self . pop_scope ( de , unpack ! ( block_and) )
128
+ self . pop_scope ( ( de , source_info ) , unpack ! ( block_and) )
129
129
} else {
130
130
block_and
131
131
}
0 commit comments