diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-07-20 09:23:31 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-07-20 09:23:31 -0700 |
| commit | 013d47b19b25b94e9740f725425bc836bac6efde (patch) | |
| tree | 3471feb8b88006f8ea76871307ba11b414b54979 /src/libstd/array.rs | |
| parent | b5dad7dcb22ed6bf8ebaae56b4339bd64f6983eb (diff) | |
| download | rust-013d47b19b25b94e9740f725425bc836bac6efde.tar.gz rust-013d47b19b25b94e9740f725425bc836bac6efde.zip | |
syntax: Suppress panic message on `fatal`
This commit ensures that the rustc thread does not leak a panic message whenever a call to `fatal` happens. This already happens for the main rustc thread as part of the `rustc_driver::monitor` function, but the compiler also spawns threads for other operations like `-C codegen-units`, and sometimes errors are emitted on these threads as well. To ensure that there's a consistent error-handling experience across threads this unifies these two to never print the panic message in the case of a normal and expected fatal error. This should also fix the flaky `asm-src-loc-codegen-units.rs` test as the output is sometimes garbled if diagnostics are printed while the panic message is also being printed.
Diffstat (limited to 'src/libstd/array.rs')
0 files changed, 0 insertions, 0 deletions
