We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 012e964 commit c1cc39fCopy full SHA for c1cc39f
src/librustc_driver/driver.rs
@@ -51,12 +51,22 @@ pub fn compile_input(sess: Session,
51
addl_plugins: Option<Vec<String>>,
52
control: CompileController) {
53
macro_rules! controller_entry_point{($point: ident, $make_state: expr) => ({
54
+ let err_count;
55
{
56
let state = $make_state;
57
+ err_count = (*state.session).err_count();
58
(control.$point.callback)(state);
59
}
60
if control.$point.stop {
- return;
61
+ let s;
62
+ match err_count {
63
+ 0 => return,
64
+ 1 => s = "build failed due to previous error".to_string(),
65
+ _ => {
66
+ s = format!("builed failed due to {} previous errors", err_count);
67
+ }
68
69
+ panic!(s);
70
71
})}
72
0 commit comments