File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
compiler/rustc_middle/src/middle Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -221,9 +221,6 @@ pub struct ScopeTree {
221221 /// variable is declared.
222222 var_map : FxIndexMap < hir:: ItemLocalId , Scope > ,
223223
224- /// Maps from a `NodeId` to the associated destruction scope (if any).
225- destruction_scopes : FxIndexMap < hir:: ItemLocalId , Scope > ,
226-
227224 /// Identifies expressions which, if captured into a temporary, ought to
228225 /// have a temporary whose lifetime extends to the end of the enclosing *block*,
229226 /// and not the enclosing *statement*. Expressions that are not present in this
@@ -336,11 +333,6 @@ impl ScopeTree {
336333 let prev = self . parent_map . insert ( child, p) ;
337334 assert ! ( prev. is_none( ) ) ;
338335 }
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- }
344336 }
345337
346338 pub fn record_var_scope ( & mut self , var : hir:: ItemLocalId , lifetime : Scope ) {
You can’t perform that action at this time.
0 commit comments