Skip to content

Commit 43d08f8

Browse files
committed
accommodate new scoping rules in librustc_driver unit tests.
1 parent 2c2f0f1 commit 43d08f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/librustc_driver/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ fn test_env<F>(source_string: &str,
115115
.expect("phase 2 aborted");
116116

117117
let mut forest = ast_map::Forest::new(krate);
118+
let arenas = ty::CtxtArenas::new();
118119
let ast_map = driver::assign_node_ids_and_map(&sess, &mut forest);
119120
let krate = ast_map.krate();
120121

@@ -125,7 +126,6 @@ fn test_env<F>(source_string: &str,
125126
let named_region_map = resolve_lifetime::krate(&sess, krate, &def_map);
126127
let region_map = region::resolve_crate(&sess, krate);
127128
let stability_index = stability::Index::build(krate);
128-
let arenas = ty::CtxtArenas::new();
129129
let tcx = ty::mk_ctxt(sess,
130130
&arenas,
131131
def_map,

0 commit comments

Comments
 (0)