Skip to content

Commit 38c363a

Browse files
committed
Remove all threading through of ErrorGuaranteed from the driver
It was inconsistently done (sometimes even within a single function) and most of the rest of the compiler uses fatal errors instead, which need to be caught using catch_with_exit_code anyway. Using fatal errors instead of ErrorGuaranteed everywhere in the driver simplifies things a bit.
1 parent 3237161 commit 38c363a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/miri.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ fn run_compiler(
289289
let exit_code = rustc_driver::catch_with_exit_code(move || {
290290
rustc_driver::RunCompiler::new(&args, callbacks)
291291
.set_using_internal_features(using_internal_features)
292-
.run()
292+
.run();
293+
Ok(())
293294
});
294295
std::process::exit(exit_code)
295296
}

0 commit comments

Comments
 (0)