Remove the RefCell around freevars and freevars_seen in librustc_resolve

This commit is contained in:
Jonathan S 2015-11-03 23:12:37 -06:00
parent c340ea1de5
commit fb2129e043
2 changed files with 12 additions and 13 deletions

View file

@ -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()),