diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-10 14:29:01 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-11 16:55:10 +1100 |
| commit | 2aac288c18f96c55677d90262e068820caf310f3 (patch) | |
| tree | 0e55f1b7b9dfbf80656d66c2ee52ad48b7011191 /tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | f0a3684c1e792b6c16e32dc154de34328beef619 (diff) | |
| download | rust-2aac288c18f96c55677d90262e068820caf310f3.tar.gz rust-2aac288c18f96c55677d90262e068820caf310f3.zip | |
Use the right level with `-Ztreat-err-as-bug`.
Errors in `DiagCtxtInner::emit_diagnostic` are never set to `Level::Bug`, because the condition never succeeds, because `self.treat_err_as_bug()` is called *before* the error counts are incremented. This commit switches to `self.treat_next_err_as_bug()`, fixing the problem. This changes the error message output to actually say "internal compiler error".
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
