about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-01-10 14:29:01 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-01-11 16:55:10 +1100
commit2aac288c18f96c55677d90262e068820caf310f3 (patch)
tree0e55f1b7b9dfbf80656d66c2ee52ad48b7011191 /tests/codegen/src-hash-algorithm
parentf0a3684c1e792b6c16e32dc154de34328beef619 (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions