We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a66bab1 + 5be00bc commit dbc9e36Copy full SHA for dbc9e36
src/driver.rs
@@ -13,7 +13,7 @@ extern crate rustc_plugin;
13
extern crate syntax;
14
15
use rustc_driver::{driver::CompileController, Compilation};
16
-use std::process::Command;
+use std::process::{exit, Command};
17
18
#[allow(print_stdout)]
19
fn show_version() {
@@ -133,5 +133,10 @@ pub fn main() {
133
}
134
controller.compilation_done.stop = Compilation::Stop;
135
136
- rustc_driver::run_compiler(&args, Box::new(controller), None, None);
+ if rustc_driver::run_compiler(&args, Box::new(controller), None, None)
137
+ .0
138
+ .is_err()
139
+ {
140
+ exit(101);
141
+ }
142
0 commit comments