rust/tests/ui/numbers-arithmetic
Trevor Gross 289fe36d37 Print thread ID in panic message if thread name is unknown
`panic!` does not print any identifying information for threads that are
unnamed. However, in many cases, the thread ID can be determined.

This changes the panic message from something like this:

    thread '<unnamed>' panicked at src/main.rs:3:5:
    explicit panic

To something like this:

    thread '<unnamed>' (0xff9bf) panicked at src/main.rs:3:5:
    explicit panic

Stack overflow messages are updated as well.

This change applies to both named and unnamed threads. The ID printed is
the OS integer thread ID rather than the Rust thread ID, which should
also be what debuggers print.
2025-08-06 23:59:47 +00:00
..
apfloat-modulo-wrong.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
arith-unsigned.rs Remove some unnecessary parens in assert! conditions 2025-02-06 22:28:44 +00:00
bitwise-ops-platform.rs cleaned up some tests 2025-06-03 07:38:06 +05:00
div-mod.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
divide-by-zero.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
f16-f128-lit.rs Remove f16 const eval crash test 2024-06-14 12:47:42 -05:00
f32-literal-rounding-32805.rs Rehome tests/ui/issues/ tests [3/?] 2025-08-04 16:43:53 -04:00
float-int-invalid-const-cast.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
float-literal-inference.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
float-nan.rs Remove some unnecessary parens in assert! conditions 2025-02-06 22:28:44 +00:00
float-signature.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
float.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
float2.rs Remove some unnecessary parens in assert! conditions 2025-02-06 22:28:44 +00:00
float_math.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
floatlits.rs Remove some unnecessary parens in assert! conditions 2025-02-06 22:28:44 +00:00
i8-incr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
i32-sub.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
i128.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
int-abs-overflow.rs tests: use needs-threads instead of ignore-emscripten 2025-01-23 20:51:29 +08:00
integer-literal-radix.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
integer-literal-suffix-inference-2.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
integer-literal-suffix-inference-3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
integer-literal-suffix-inference.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
isize-base.rs Cleaned up base tests for isize and usize in tests/ui/numbers-arithmetic 2025-04-16 08:55:50 -06:00
issue-8460.rs tests: use needs-threads instead of ignore-emscripten 2025-01-23 20:51:29 +08:00
location-add-assign-overflow.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
location-add-overflow.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
location-divide-assign-by-zero.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
location-divide-by-zero.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
location-mod-assign-by-zero.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
location-mod-by-zero.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
location-mul-assign-overflow.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
location-mul-overflow.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
location-sub-assign-overflow.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
location-sub-overflow.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
mod-zero.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
next-power-of-two-overflow-debug.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
next-power-of-two-overflow-ndebug.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
not-suggest-float-literal.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
not-suggest-float-literal.stderr Don't call const normalize in error reporting 2024-09-22 13:55:06 -04:00
num-wrapping.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
numeric-method-autoexport.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
overflow-attribute-works-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
overflow-attribute-works-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
overflowing-add.rs Print thread ID in panic message if thread name is unknown 2025-08-06 23:59:47 +00:00
overflowing-lsh-4.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
overflowing-lsh-4.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
overflowing-mul.rs Print thread ID in panic message if thread name is unknown 2025-08-06 23:59:47 +00:00
overflowing-neg-nonzero.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
overflowing-pow-signed.rs Print thread ID in panic message if thread name is unknown 2025-08-06 23:59:47 +00:00
overflowing-pow-unsigned.rs Print thread ID in panic message if thread name is unknown 2025-08-06 23:59:47 +00:00
overflowing-rsh-4.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
overflowing-rsh-4.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
overflowing-sub.rs Print thread ID in panic message if thread name is unknown 2025-08-06 23:59:47 +00:00
promoted_overflow.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
saturating-float-casts-impl.rs tests: use //@ ignore-auxiliary with backlinked primary test file 2025-04-17 19:45:28 +08:00
saturating-float-casts-wasm.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
saturating-float-casts.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
shift-near-oflo.rs Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
shift-various-types.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
shift.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
signed-shift-const-eval.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
suggest-float-literal.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
suggest-float-literal.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
suggest-float-literal.stderr Don't call const normalize in error reporting 2024-09-22 13:55:06 -04:00
u8-incr-decr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
u8-incr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
u32-decr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
u128-as-f32.rs Add ignore-backends annotations in failing GCC backend ui tests 2025-07-23 13:48:04 +02:00
u128.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unary-minus-suffix-inference.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unary-negation-unsigned-integer-error.rs cleaned up some tests 2025-07-10 18:50:35 +05:00
unary-negation-unsigned-integer-error.stderr cleaned up some tests 2025-07-10 18:50:35 +05:00
usize-base.rs Cleaned up base tests for isize and usize in tests/ui/numbers-arithmetic 2025-04-16 08:55:50 -06:00