@@ -77,7 +77,6 @@ use syntax_pos::Span;
7777use std:: borrow:: Cow ;
7878use std:: fmt;
7979use std:: hash:: { Hash , Hasher } ;
80- use rustc_data_structures:: sync:: Lrc ;
8180use rustc_data_structures:: indexed_vec:: Idx ;
8281use std:: rc:: Rc ;
8382use crate :: util:: nodemap:: ItemLocalSet ;
@@ -290,7 +289,7 @@ pub struct MemCategorizationContext<'a, 'gcx: 'a+'tcx, 'tcx: 'a> {
290289 pub tcx : TyCtxt < ' a , ' gcx , ' tcx > ,
291290 pub region_scope_tree : & ' a region:: ScopeTree ,
292291 pub tables : & ' a ty:: TypeckTables < ' tcx > ,
293- rvalue_promotable_map : Option < Lrc < ItemLocalSet > > ,
292+ rvalue_promotable_map : Option < & ' tcx ItemLocalSet > ,
294293 infcx : Option < & ' a InferCtxt < ' a , ' gcx , ' tcx > > ,
295294}
296295
@@ -400,7 +399,7 @@ impl<'a, 'tcx> MemCategorizationContext<'a, 'tcx, 'tcx> {
400399 pub fn new ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
401400 region_scope_tree : & ' a region:: ScopeTree ,
402401 tables : & ' a ty:: TypeckTables < ' tcx > ,
403- rvalue_promotable_map : Option < Lrc < ItemLocalSet > > )
402+ rvalue_promotable_map : Option < & ' tcx ItemLocalSet > )
404403 -> MemCategorizationContext < ' a , ' tcx , ' tcx > {
405404 MemCategorizationContext {
406405 tcx,
0 commit comments