Remove the RefCell around freevars and freevars_seen in librustc_resolve
This commit is contained in:
parent
c340ea1de5
commit
fb2129e043
2 changed files with 12 additions and 13 deletions
|
|
@ -448,7 +448,7 @@ impl<'tcx> ctxt<'tcx> {
|
|||
def_map: DefMap,
|
||||
named_region_map: resolve_lifetime::NamedRegionMap,
|
||||
map: ast_map::Map<'tcx>,
|
||||
freevars: RefCell<FreevarMap>,
|
||||
freevars: FreevarMap,
|
||||
region_maps: RegionMaps,
|
||||
lang_items: middle::lang_items::LanguageItems,
|
||||
stability: stability::Index<'tcx>,
|
||||
|
|
@ -481,7 +481,7 @@ impl<'tcx> ctxt<'tcx> {
|
|||
super_predicates: RefCell::new(DefIdMap()),
|
||||
fulfilled_predicates: RefCell::new(traits::FulfilledPredicates::new()),
|
||||
map: map,
|
||||
freevars: freevars,
|
||||
freevars: RefCell::new(freevars),
|
||||
tcache: RefCell::new(DefIdMap()),
|
||||
rcache: RefCell::new(FnvHashMap()),
|
||||
tc_cache: RefCell::new(FnvHashMap()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue