rust/tests/ui/panics
Nicholas Nethercote 2aac288c18 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".
2024-01-11 16:55:10 +11:00
..
abort-on-panic.rs update use of feature flags 2023-12-14 15:22:37 +01:00
args-panic.rs
default-backtrace-ice.rs Improve filtering in default-backtrace-ice.rs. 2023-05-05 07:18:06 +10:00
default-backtrace-ice.stderr Use the right level with -Ztreat-err-as-bug. 2024-01-11 16:55:10 +11:00
doublepanic.rs
explicit-panic-msg.rs
explicit-panic.rs
fmt-only-once.rs test that we format the panic message only once 2023-04-25 18:11:28 +02:00
fmt-only-once.run.stderr Change default panic handler message format. 2023-07-29 11:42:50 +02:00
fmt-panic.rs
issue-47429-short-backtraces.legacy.run.stderr Change default panic handler message format. 2023-07-29 11:42:50 +02:00
issue-47429-short-backtraces.rs
issue-47429-short-backtraces.v0.run.stderr Change default panic handler message format. 2023-07-29 11:42:50 +02:00
location-detail-panic-no-column.rs
location-detail-panic-no-column.run.stderr Change default panic handler message format. 2023-07-29 11:42:50 +02:00
location-detail-panic-no-file.rs
location-detail-panic-no-file.run.stderr Change default panic handler message format. 2023-07-29 11:42:50 +02:00
location-detail-panic-no-line.rs
location-detail-panic-no-line.run.stderr Change default panic handler message format. 2023-07-29 11:42:50 +02:00
location-detail-panic-no-location-info.rs
location-detail-panic-no-location-info.run.stderr Change default panic handler message format. 2023-07-29 11:42:50 +02:00
location-detail-unwrap-no-file.rs
location-detail-unwrap-no-file.run.stderr Change default panic handler message format. 2023-07-29 11:42:50 +02:00
main-panic.rs
nested_panic_caught.rs Rework handling of recursive panics 2023-05-27 16:35:16 +02:00
panic-2021.rs
panic-2021.stderr
panic-arg.rs
panic-handler-chain-update-hook.rs
panic-handler-chain.rs
panic-handler-flail-wildly.rs
panic-handler-set-twice.rs
panic-in-cleanup.rs avoid triple-backtrace due to panic-during-cleanup 2023-08-27 20:02:46 +02:00
panic-in-cleanup.run.stderr avoid triple-backtrace due to panic-during-cleanup 2023-08-27 20:02:46 +02:00
panic-in-dtor-drops-fields.rs
panic-in-ffi.rs avoid triple-backtrace due to panic-during-cleanup 2023-08-27 20:02:46 +02:00
panic-in-ffi.run.stderr avoid triple-backtrace due to panic-during-cleanup 2023-08-27 20:02:46 +02:00
panic-macro-any-wrapped.rs Change default panic handler message format. 2023-07-29 11:42:50 +02:00
panic-macro-any.rs Change default panic handler message format. 2023-07-29 11:42:50 +02:00
panic-macro-explicit.rs Change default panic handler message format. 2023-07-29 11:42:50 +02:00
panic-macro-fmt.rs Change default panic handler message format. 2023-07-29 11:42:50 +02:00
panic-macro-owned.rs Change default panic handler message format. 2023-07-29 11:42:50 +02:00
panic-macro-static.rs Change default panic handler message format. 2023-07-29 11:42:50 +02:00
panic-main.rs
panic-parens.rs
panic-recover-propagate.rs
panic-set-handler.rs
panic-set-unset-handler.rs Change default panic handler message format. 2023-07-29 11:42:50 +02:00
panic-short-backtrace-windows-x86_64.rs Add some reasons why tests are ignored. 2023-04-15 16:11:42 -07:00
panic-short-backtrace-windows-x86_64.run.stderr
panic-take-handler-nop.rs Change default panic handler message format. 2023-07-29 11:42:50 +02:00
panic-task-name-none.rs Change default panic handler message format. 2023-07-29 11:42:50 +02:00
panic-task-name-owned.rs Change default panic handler message format. 2023-07-29 11:42:50 +02:00
panic.rs
result-get-panic.rs
runtime-switch.legacy.run.stderr Change default panic handler message format. 2023-07-29 11:42:50 +02:00
runtime-switch.rs
runtime-switch.v0.run.stderr Change default panic handler message format. 2023-07-29 11:42:50 +02:00
short-ice-remove-middle-frames-2.rs mark relevant tests as requiring unwinding 2023-09-29 14:24:40 +02:00
short-ice-remove-middle-frames-2.run.stderr mark relevant tests as requiring unwinding 2023-09-29 14:24:40 +02:00
short-ice-remove-middle-frames.rs mark relevant tests as requiring unwinding 2023-09-29 14:24:40 +02:00
short-ice-remove-middle-frames.run.stderr mark relevant tests as requiring unwinding 2023-09-29 14:24:40 +02:00
test-panic.rs
test-should-fail-bad-message.rs
test-should-panic-bad-message.rs
test-should-panic-no-message.rs
unique-panic.rs
while-body-panics.rs
while-panic.rs