]> git.lizzy.rs Git - rust.git/commit
Auto merge of #43015 - arielb1:every-error-counts, r=eddyb
authorbors <bors@rust-lang.org>
Sun, 2 Jul 2017 13:22:23 +0000 (13:22 +0000)
committerbors <bors@rust-lang.org>
Sun, 2 Jul 2017 13:22:23 +0000 (13:22 +0000)
commit2a992167c51d30a2b21da7a20d8c3077a2ec0093
tree143cc21a6824068118d6694465e5ce579d139f06
parentc3a130cffca55c650c4a6d2de77c3138cf74c3f8
parentfb7ab9e43da3727e1c58faf9451857968270dc77
Auto merge of #43015 - arielb1:every-error-counts, r=eddyb

report the total number of errors on compilation failure

Prior to this PR, when we aborted because a "critical pass" failed, we displayed the number of errors from that critical pass. While that's the number of errors that caused compilation to abort in *that place*, that's not what people really want to know. Instead, always report the total number of errors, and don't bother to track the number of errors from the last pass that failed.

This changes the compiler driver API to handle errors more smoothly, therefore is a compiler-api-[breaking-change].

Fixes #42793.

r? @eddyb