diff options
Diffstat (limited to 'src/test/run-pass-fulldeps/compiler-calls.rs')
| -rw-r--r-- | src/test/run-pass-fulldeps/compiler-calls.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/run-pass-fulldeps/compiler-calls.rs b/src/test/run-pass-fulldeps/compiler-calls.rs index baf9e0d5dc5..6283d054373 100644 --- a/src/test/run-pass-fulldeps/compiler-calls.rs +++ b/src/test/run-pass-fulldeps/compiler-calls.rs @@ -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); } |
