rust/src/test/ui/panics
Yuki Okushi 333d3d6243
Rollup merge of #93566 - Aaron1011:rustc-backtrace, r=davidtwco
Make rustc use `RUST_BACKTRACE=full` by default

Compiler panics should be rare - when they do occur, we want the report
filed by the user to contain as much information as possible. This is
especially important when the panic is due to an incremental compilation
bug, since we may not have enough information to reproduce it.

This PR sets `RUST_BACKTRACE=full` inside `rustc` if the user has not
explicitly set `RUST_BACKTRACE`. This is more verbose than
`RUST_BACKTRACE=1`, but this may make it easier to debug incremental
compilation issues. Users who find this too verbose can still manually
set `RUST_BACKTRACE` before invoking the compiler.

This only affects `rustc` (and any tool using `rustc_driver::install_ice_hook`).
It does *not* affect any user crates or the standard library -
backtraces will continue to be off by default in any application
*compiled* by rustc.
2022-02-03 22:20:26 +09:00
..
abort-on-panic.rs rustc: Fill out remaining parts of C-unwind ABI 2021-08-03 07:06:19 -07:00
args-panic.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
default-backtrace-ice.rs Make rustc use RUST_BACKTRACE=full by default 2022-02-01 22:44:22 -05:00
default-backtrace-ice.stderr Make rustc use RUST_BACKTRACE=full by default 2022-02-01 22:44:22 -05:00
doublepanic.rs
explicit-panic-msg.rs Add s to non_fmt_panic 2021-07-06 20:12:56 +02:00
explicit-panic.rs
fmt-panic.rs
issue-47429-short-backtraces.legacy.run.stderr tests: support -Zsymbol-mangling-version=v0 being the default. 2021-08-24 19:07:50 +03:00
issue-47429-short-backtraces.rs Update references to -Z symbol-mangling-version to use -C 2022-01-01 15:53:11 -08:00
issue-47429-short-backtraces.v0.run.stderr tests: support -Zsymbol-mangling-version=v0 being the default. 2021-08-24 19:07:50 +03:00
location-detail-panic-no-column.rs Set RUST_BACKTRACE=0 when running location-detail tests 2021-12-17 14:05:48 -05:00
location-detail-panic-no-column.run.stderr Set RUST_BACKTRACE=0 when running location-detail tests 2021-12-17 14:05:48 -05:00
location-detail-panic-no-file.rs Set RUST_BACKTRACE=0 when running location-detail tests 2021-12-17 14:05:48 -05:00
location-detail-panic-no-file.run.stderr Set RUST_BACKTRACE=0 when running location-detail tests 2021-12-17 14:05:48 -05:00
location-detail-panic-no-line.rs Set RUST_BACKTRACE=0 when running location-detail tests 2021-12-17 14:05:48 -05:00
location-detail-panic-no-line.run.stderr add tests for -Zlocation-detail 2021-10-21 10:44:22 -07:00
location-detail-unwrap-no-file.rs Set RUST_BACKTRACE=0 when running location-detail tests 2021-12-17 14:05:48 -05:00
location-detail-unwrap-no-file.run.stderr Set RUST_BACKTRACE=0 when running location-detail tests 2021-12-17 14:05:48 -05:00
main-panic.rs
panic-2021.rs
panic-2021.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
panic-arg.rs
panic-handler-chain-update-hook.rs Change panic::update_hook to simplify usage 2022-01-08 00:57:59 +01:00
panic-handler-chain.rs Add needs-unwind to tests that depend on panicking 2021-12-09 22:03:52 +00:00
panic-handler-flail-wildly.rs Add needs-unwind to tests that depend on panicking 2021-12-09 22:03:52 +00:00
panic-handler-set-twice.rs Add needs-unwind to tests that depend on panicking 2021-12-09 22:03:52 +00:00
panic-in-dtor-drops-fields.rs Add needs-unwind to tests that depend on panicking 2021-12-09 22:03:52 +00:00
panic-macro-any-wrapped.rs Add s to non_fmt_panic 2021-07-06 20:12:56 +02:00
panic-macro-any.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
panic-macro-explicit.rs
panic-macro-fmt.rs
panic-macro-owned.rs
panic-macro-static.rs
panic-main.rs
panic-parens.rs
panic-recover-propagate.rs Add needs-unwind to tests that depend on panicking 2021-12-09 22:03:52 +00:00
panic-set-handler.rs
panic-set-unset-handler.rs
panic-short-backtrace-windows-x86_64.rs Ignore flaky panic-short-backtrace-windows-x86_64.rs test for now 2022-01-04 19:52:43 -08:00
panic-short-backtrace-windows-x86_64.run.stderr [backtraces]: look for the begin symbol only after seeing end 2021-07-29 13:51:27 -04:00
panic-take-handler-nop.rs
panic-task-name-none.rs
panic-task-name-owned.rs
panic.rs
result-get-panic.rs
runtime-switch.legacy.run.stderr Configure panic hook backtrace behavior 2022-02-02 13:46:42 -05:00
runtime-switch.rs Configure panic hook backtrace behavior 2022-02-02 13:46:42 -05:00
runtime-switch.v0.run.stderr Configure panic hook backtrace behavior 2022-02-02 13:46:42 -05: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 Allow/fix non_fmt_panic in tests. 2021-02-03 23:15:45 +01:00