File tree 1 file changed +0
-8
lines changed
compiler/rustc_middle/src/middle
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -221,9 +221,6 @@ pub struct ScopeTree {
221
221
/// variable is declared.
222
222
var_map : FxIndexMap < hir:: ItemLocalId , Scope > ,
223
223
224
- /// Maps from a `NodeId` to the associated destruction scope (if any).
225
- destruction_scopes : FxIndexMap < hir:: ItemLocalId , Scope > ,
226
-
227
224
/// Identifies expressions which, if captured into a temporary, ought to
228
225
/// have a temporary whose lifetime extends to the end of the enclosing *block*,
229
226
/// and not the enclosing *statement*. Expressions that are not present in this
@@ -336,11 +333,6 @@ impl ScopeTree {
336
333
let prev = self . parent_map . insert ( child, p) ;
337
334
assert ! ( prev. is_none( ) ) ;
338
335
}
339
-
340
- // Record the destruction scopes for later so we can query them.
341
- if let ScopeData :: Destruction = child. data {
342
- self . destruction_scopes . insert ( child. item_local_id ( ) , child) ;
343
- }
344
336
}
345
337
346
338
pub fn record_var_scope ( & mut self , var : hir:: ItemLocalId , lifetime : Scope ) {
You can’t perform that action at this time.
0 commit comments