mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
Produce the exit codes that compiletest expects
This commit is contained in:
+8
-4
@@ -228,8 +228,12 @@ fn main() {
|
||||
}
|
||||
});
|
||||
|
||||
rustc_driver::run_compiler(&args, Box::new(MiriCompilerCalls {
|
||||
default: Box::new(RustcDefaultCalls),
|
||||
start_fn,
|
||||
}), None, None);
|
||||
|
||||
let result = rustc_driver::run(move || {
|
||||
rustc_driver::run_compiler(&args, Box::new(MiriCompilerCalls {
|
||||
default: Box::new(RustcDefaultCalls),
|
||||
start_fn,
|
||||
}), None, None)
|
||||
});
|
||||
std::process::exit(result as i32);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user