mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 01:55:03 +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".
26 lines
546 B
Plaintext
26 lines
546 B
Plaintext
error: internal compiler error[E0425]: cannot find value `missing_ident` in this scope
|
|
--> $DIR/default-backtrace-ice.rs:21:13
|
|
|
|
|
LL | fn main() { missing_ident; }
|
|
| ^^^^^^^^^^^^^ not found in this scope
|
|
|
|
|
|
aborting due to `-Z treat-err-as-bug=1`
|
|
stack backtrace:
|
|
(end_short_backtrace)
|
|
(begin_short_backtrace)
|
|
(end_short_backtrace)
|
|
(begin_short_backtrace)
|
|
|
|
error: the compiler unexpectedly panicked. this is a bug.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
query stack during panic:
|
|
#0 [resolver_for_lowering] getting the resolver for lowering
|
|
end of query stack
|