accommodate new scoping rules in librustc_driver unit tests.
This commit is contained in:
parent
2c2f0f1216
commit
43d08f861a
@ -115,6 +115,7 @@ fn test_env<F>(source_string: &str,
|
||||
.expect("phase 2 aborted");
|
||||
|
||||
let mut forest = ast_map::Forest::new(krate);
|
||||
let arenas = ty::CtxtArenas::new();
|
||||
let ast_map = driver::assign_node_ids_and_map(&sess, &mut forest);
|
||||
let krate = ast_map.krate();
|
||||
|
||||
@ -125,7 +126,6 @@ fn test_env<F>(source_string: &str,
|
||||
let named_region_map = resolve_lifetime::krate(&sess, krate, &def_map);
|
||||
let region_map = region::resolve_crate(&sess, krate);
|
||||
let stability_index = stability::Index::build(krate);
|
||||
let arenas = ty::CtxtArenas::new();
|
||||
let tcx = ty::mk_ctxt(sess,
|
||||
&arenas,
|
||||
def_map,
|
||||
|
Loading…
x
Reference in New Issue
Block a user