@@ -58,7 +58,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
5858 } ) ) ;
5959
6060 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) ) ;
6262 }
6363 }
6464 StmtKind :: Let { remainder_scope, init_scope, pattern, initializer } => {
@@ -87,7 +87,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
8787 } ) ) ;
8888
8989 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) ) ;
9191 }
9292 } else {
9393 this. storage_live_for_bindings ( block, & pattern) ;
@@ -111,7 +111,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
111111 // Finally, we pop all the let scopes before exiting out from the scope of block
112112 // itself.
113113 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) ) ;
115115 if this. seen_borrows . contains ( & extent) {
116116 this. cfg . push_end_region ( block, source_info, extent) ;
117117 }
@@ -122,7 +122,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
122122 } ) ;
123123
124124 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) )
126126 } else {
127127 block_and
128128 }
0 commit comments