@@ -77,7 +77,6 @@ use syntax_pos::Span;
77
77
use std:: borrow:: Cow ;
78
78
use std:: fmt;
79
79
use std:: hash:: { Hash , Hasher } ;
80
- use rustc_data_structures:: sync:: Lrc ;
81
80
use rustc_data_structures:: indexed_vec:: Idx ;
82
81
use std:: rc:: Rc ;
83
82
use crate :: util:: nodemap:: ItemLocalSet ;
@@ -290,7 +289,7 @@ pub struct MemCategorizationContext<'a, 'gcx: 'a+'tcx, 'tcx: 'a> {
290
289
pub tcx : TyCtxt < ' a , ' gcx , ' tcx > ,
291
290
pub region_scope_tree : & ' a region:: ScopeTree ,
292
291
pub tables : & ' a ty:: TypeckTables < ' tcx > ,
293
- rvalue_promotable_map : Option < Lrc < ItemLocalSet > > ,
292
+ rvalue_promotable_map : Option < & ' tcx ItemLocalSet > ,
294
293
infcx : Option < & ' a InferCtxt < ' a , ' gcx , ' tcx > > ,
295
294
}
296
295
@@ -400,7 +399,7 @@ impl<'a, 'tcx> MemCategorizationContext<'a, 'tcx, 'tcx> {
400
399
pub fn new ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
401
400
region_scope_tree : & ' a region:: ScopeTree ,
402
401
tables : & ' a ty:: TypeckTables < ' tcx > ,
403
- rvalue_promotable_map : Option < Lrc < ItemLocalSet > > )
402
+ rvalue_promotable_map : Option < & ' tcx ItemLocalSet > )
404
403
-> MemCategorizationContext < ' a , ' tcx , ' tcx > {
405
404
MemCategorizationContext {
406
405
tcx,
0 commit comments