Move with_globals setup from run_compiler to run
This commit is contained in:
parent
7219130677
commit
bd04796d6e
2 changed files with 31 additions and 29 deletions
|
|
@ -92,7 +92,9 @@ fn main() {
|
|||
let tc = TestCalls { count: &mut count };
|
||||
// we should never get use this filename, but lets make sure they are valid args.
|
||||
let args = vec!["compiler-calls".to_string(), "foo.rs".to_string()];
|
||||
rustc_driver::run_compiler(&args, Box::new(tc), None, None);
|
||||
syntax::with_globals(|| {
|
||||
rustc_driver::run_compiler(&args, Box::new(tc), None, None);
|
||||
});
|
||||
}
|
||||
assert_eq!(count, 30);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue