mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
2aac288c18
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".
19 lines
545 B
Plaintext
19 lines
545 B
Plaintext
error: internal compiler error: expected one of `->`, `where`, or `{`, found `<eof>`
|
|
--> $DIR/ice-bug-report-url.rs:14:10
|
|
|
|
|
LL | fn wrong()
|
|
| ^ expected one of `->`, `where`, or `{`
|
|
|
|
|
|
aborting due to `-Z treat-err-as-bug=1`
|
|
stack backtrace:
|
|
|
|
error: the compiler unexpectedly panicked. this is a bug.
|
|
|
|
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-rustdoc&template=ice.md
|
|
|
|
note: rustc {version} running on {platform}
|
|
|
|
query stack during panic:
|
|
end of query stack
|