@@ -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. storage_live_for_bindings ( block, & pattern) ;
@@ -111,7 +111,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
111
111
// Finally, we pop all the let scopes before exiting out from the scope of block
112
112
// itself.
113
113
for ( extent, source_info) in let_extent_stack. into_iter ( ) . rev ( ) {
114
- unpack ! ( block = this. pop_scope( extent, block) ) ;
114
+ unpack ! ( block = this. pop_scope( ( extent, source_info ) , block) ) ;
115
115
if this. seen_borrows . contains ( & extent) {
116
116
this. cfg . push_end_region ( block, source_info, extent) ;
117
117
}
@@ -122,7 +122,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
122
122
} ) ;
123
123
124
124
if let Some ( de) = opt_destruction_extent {
125
- self . pop_scope ( de , unpack ! ( block_and) )
125
+ self . pop_scope ( ( de , source_info ) , unpack ! ( block_and) )
126
126
} else {
127
127
block_and
128
128
}
0 commit comments