Fix ui-fulldep tests
This commit is contained in:
parent
618d4c3eeb
commit
85414ebea7
4 changed files with 17 additions and 22 deletions
|
@ -342,8 +342,9 @@ macro_rules! run_driver {
|
|||
|
||||
/// Runs the compiler against given target and tests it with `test_function`
|
||||
pub fn run(&mut self) -> Result<C, CompilerError<B>> {
|
||||
let compiler_result = rustc_driver::catch_fatal_errors(|| {
|
||||
RunCompiler::new(&self.args.clone(), self).run()
|
||||
let compiler_result = rustc_driver::catch_fatal_errors(|| -> interface::Result::<()> {
|
||||
RunCompiler::new(&self.args.clone(), self).run();
|
||||
Ok(())
|
||||
});
|
||||
match (compiler_result, self.result.take()) {
|
||||
(Ok(Ok(())), Some(ControlFlow::Continue(value))) => Ok(value),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue