Skip to content

Commit 0f7a671

Browse files
committed
Try to write the panic message with a single write_all call
1 parent c5b5713 commit 0f7a671

File tree

79 files changed

+143
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+143
-14
lines changed

Diff for: library/std/src/panicking.rs

+15-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,21 @@ fn default_hook(info: &PanicInfo<'_>) {
260260
let name = thread.as_ref().and_then(|t| t.name()).unwrap_or("<unnamed>");
261261

262262
let write = |err: &mut dyn crate::io::Write| {
263-
let _ = writeln!(err, "thread '{name}' panicked at {location}:\n{msg}");
263+
// Try to write the panic message to a buffer first to prevent other concurrent outputs
264+
// interleaving with it.
265+
let mut buffer = [0u8; 512];
266+
let mut cursor = crate::io::Cursor::new(&mut buffer[..]);
267+
268+
let write_msg = |dst: &mut dyn crate::io::Write| {
269+
writeln!(dst, "\nthread '{name}' panicked at {location}:\n{msg}")
270+
};
271+
272+
let _ = if write_msg(&mut cursor).is_ok() {
273+
let pos = cursor.position() as usize;
274+
err.write_all(&buffer[0..pos])
275+
} else {
276+
write_msg(err)
277+
};
264278

265279
static FIRST_PANIC: AtomicBool = AtomicBool::new(true);
266280

Diff for: src/tools/miri/tests/fail/function_calls/exported_symbol_bad_unwind1.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/exported_symbol_bad_unwind1.rs:LL:CC:
23
explicit panic
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: src/tools/miri/tests/fail/function_calls/exported_symbol_bad_unwind2.both.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
12
thread 'main' panicked at $DIR/exported_symbol_bad_unwind2.rs:LL:CC:
23
explicit panic
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
5+
46
thread 'main' panicked at RUSTLIB/core/src/panicking.rs:LL:CC:
57
panic in a function that cannot unwind
68
stack backtrace:

Diff for: src/tools/miri/tests/fail/function_calls/exported_symbol_bad_unwind2.definition.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
12
thread 'main' panicked at $DIR/exported_symbol_bad_unwind2.rs:LL:CC:
23
explicit panic
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
5+
46
thread 'main' panicked at RUSTLIB/core/src/panicking.rs:LL:CC:
57
panic in a function that cannot unwind
68
stack backtrace:

Diff for: src/tools/miri/tests/fail/function_calls/exported_symbol_bad_unwind2.extern_block.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/exported_symbol_bad_unwind2.rs:LL:CC:
23
explicit panic
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: src/tools/miri/tests/fail/function_calls/return_pointer_on_unwind.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/return_pointer_on_unwind.rs:LL:CC:
23
explicit panic
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: src/tools/miri/tests/fail/intrinsics/uninit_uninhabited_type.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at RUSTLIB/core/src/panicking.rs:LL:CC:
23
aborted execution: attempted to instantiate uninhabited type `!`
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: src/tools/miri/tests/fail/intrinsics/zero_fn_ptr.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at RUSTLIB/core/src/panicking.rs:LL:CC:
23
aborted execution: attempted to zero-initialize type `fn()`, which is invalid
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: src/tools/miri/tests/fail/panic/bad_unwind.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/bad_unwind.rs:LL:CC:
23
explicit panic
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: src/tools/miri/tests/fail/panic/double_panic.stderr

+3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
12
thread 'main' panicked at $DIR/double_panic.rs:LL:CC:
23
first
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
5+
46
thread 'main' panicked at $DIR/double_panic.rs:LL:CC:
57
second
68
stack backtrace:
9+
710
thread 'main' panicked at RUSTLIB/core/src/panicking.rs:LL:CC:
811
panic in a destructor during cleanup
912
thread caused non-unwinding panic. aborting.

Diff for: src/tools/miri/tests/fail/panic/panic_abort1.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/panic_abort1.rs:LL:CC:
23
panicking from libstd
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: src/tools/miri/tests/fail/panic/panic_abort2.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/panic_abort2.rs:LL:CC:
23
42-panicking from libstd
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: src/tools/miri/tests/fail/panic/panic_abort3.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/panic_abort3.rs:LL:CC:
23
panicking from libcore
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: src/tools/miri/tests/fail/panic/panic_abort4.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/panic_abort4.rs:LL:CC:
23
42-panicking from libcore
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: src/tools/miri/tests/fail/panic/tls_macro_const_drop_panic.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread $NAME panicked at $DIR/tls_macro_const_drop_panic.rs:LL:CC:
23
ow
34
fatal runtime error: thread local panicked on drop

Diff for: src/tools/miri/tests/fail/panic/tls_macro_drop_panic.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread $NAME panicked at $DIR/tls_macro_drop_panic.rs:LL:CC:
23
ow
34
fatal runtime error: thread local panicked on drop

Diff for: src/tools/miri/tests/fail/terminate-terminator.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
warning: You have explicitly enabled MIR optimizations, overriding Miri's default which is to completely disable them. Any optimizations may hide UB that Miri would otherwise detect, and it is not necessarily possible to predict what kind of UB will be missed. If you are enabling optimizations to make Miri run faster, we advise using cfg(miri) to shrink your workload instead. The performance benefit of enabling MIR optimizations is usually marginal at best.
22

3+
34
thread 'main' panicked at $DIR/terminate-terminator.rs:LL:CC:
45
explicit panic
56
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
7+
68
thread 'main' panicked at RUSTLIB/core/src/panicking.rs:LL:CC:
79
panic in a function that cannot unwind
810
stack backtrace:

Diff for: src/tools/miri/tests/fail/unwind-action-terminate.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
12
thread 'main' panicked at $DIR/unwind-action-terminate.rs:LL:CC:
23
explicit panic
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
5+
46
thread 'main' panicked at RUSTLIB/core/src/panicking.rs:LL:CC:
57
panic in a function that cannot unwind
68
stack backtrace:

Diff for: src/tools/miri/tests/panic/div-by-zero-2.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/div-by-zero-2.rs:LL:CC:
23
attempt to divide by zero
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
12
thread 'main' panicked at $DIR/exported_symbol_good_unwind.rs:LL:CC:
23
explicit panic
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
5+
46
thread 'main' panicked at $DIR/exported_symbol_good_unwind.rs:LL:CC:
57
explicit panic
8+
69
thread 'main' panicked at $DIR/exported_symbol_good_unwind.rs:LL:CC:
710
explicit panic

Diff for: src/tools/miri/tests/panic/oob_subslice.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/oob_subslice.rs:LL:CC:
23
range end index 5 out of range for slice of length 4
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/overflowing-lsh-neg.rs:LL:CC:
23
attempt to shift left with overflow
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: src/tools/miri/tests/panic/overflowing-rsh-1.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/overflowing-rsh-1.rs:LL:CC:
23
attempt to shift right with overflow
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: src/tools/miri/tests/panic/overflowing-rsh-2.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/overflowing-rsh-2.rs:LL:CC:
23
attempt to shift right with overflow
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: src/tools/miri/tests/panic/panic1.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/panic1.rs:LL:CC:
23
panicking from libstd
34
stack backtrace:

Diff for: src/tools/miri/tests/panic/panic2.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/panic2.rs:LL:CC:
23
42-panicking from libstd
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: src/tools/miri/tests/panic/panic3.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/panic3.rs:LL:CC:
23
panicking from libcore
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: src/tools/miri/tests/panic/panic4.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/panic4.rs:LL:CC:
23
42-panicking from libcore
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: src/tools/miri/tests/panic/transmute_fat2.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/transmute_fat2.rs:LL:CC:
23
index out of bounds: the len is 0 but the index is 0
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/unsupported_foreign_function.rs:LL:CC:
23
unsupported Miri functionality: can't call foreign function `foo` on $OS
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/unsupported_syscall.rs:LL:CC:
23
unsupported Miri functionality: can't execute syscall with ID 0
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: src/tools/miri/tests/pass/panic/catch_panic.stderr

+11
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,45 @@
1+
12
thread 'main' panicked at $DIR/catch_panic.rs:LL:CC:
23
Hello from std::panic
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
45
Caught panic message (&str): Hello from std::panic
6+
57
thread 'main' panicked at $DIR/catch_panic.rs:LL:CC:
68
Hello from std::panic: 1
79
Caught panic message (String): Hello from std::panic: 1
10+
811
thread 'main' panicked at $DIR/catch_panic.rs:LL:CC:
912
Hello from std::panic_any: 2
1013
Caught panic message (String): Hello from std::panic_any: 2
14+
1115
thread 'main' panicked at $DIR/catch_panic.rs:LL:CC:
1216
Box<dyn Any>
1317
Failed to get caught panic message.
18+
1419
thread 'main' panicked at $DIR/catch_panic.rs:LL:CC:
1520
Hello from core::panic
1621
Caught panic message (&str): Hello from core::panic
22+
1723
thread 'main' panicked at $DIR/catch_panic.rs:LL:CC:
1824
Hello from core::panic: 5
1925
Caught panic message (String): Hello from core::panic: 5
26+
2027
thread 'main' panicked at $DIR/catch_panic.rs:LL:CC:
2128
index out of bounds: the len is 3 but the index is 4
2229
Caught panic message (String): index out of bounds: the len is 3 but the index is 4
30+
2331
thread 'main' panicked at $DIR/catch_panic.rs:LL:CC:
2432
attempt to divide by zero
2533
Caught panic message (&str): attempt to divide by zero
34+
2635
thread 'main' panicked at RUSTLIB/core/src/ptr/const_ptr.rs:LL:CC:
2736
align_offset: align is not a power-of-two
2837
Caught panic message (&str): align_offset: align is not a power-of-two
38+
2939
thread 'main' panicked at $DIR/catch_panic.rs:LL:CC:
3040
assertion failed: false
3141
Caught panic message (&str): assertion failed: false
42+
3243
thread 'main' panicked at $DIR/catch_panic.rs:LL:CC:
3344
assertion failed: false
3445
Caught panic message (&str): assertion failed: false

Diff for: src/tools/miri/tests/pass/panic/concurrent-panic.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
Thread 1 starting, will block on mutex
22
Thread 1 reported it has started
3+
34
thread '<unnamed>' panicked at $DIR/concurrent-panic.rs:LL:CC:
45
panic in thread 2
56
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
67
Thread 2 blocking on thread 1
78
Thread 2 reported it has started
89
Unlocking mutex
10+
911
thread '<unnamed>' panicked at $DIR/concurrent-panic.rs:LL:CC:
1012
panic in thread 1
1113
Thread 1 has exited
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
12
thread 'main' panicked at $DIR/nested_panic_caught.rs:LL:CC:
23
once
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
5+
46
thread 'main' panicked at $DIR/nested_panic_caught.rs:LL:CC:
57
twice
68
stack backtrace:

Diff for: src/tools/miri/tests/pass/panic/thread_panic.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
12
thread '<unnamed>' panicked at $DIR/thread_panic.rs:LL:CC:
23
Hello!
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
5+
46
thread 'childthread' panicked at $DIR/thread_panic.rs:LL:CC:
57
Hello, world!

Diff for: tests/rustdoc-ui/doctest/failed-doctest-output.stdout

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ stdout 2
2626
stderr:
2727
stderr 1
2828
stderr 2
29+
2930
thread 'main' panicked at $DIR/failed-doctest-output.rs:7:1:
3031
oh no
3132
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: tests/rustdoc-ui/ice-bug-report-url.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ LL | fn wrong()
55
| ^ expected one of `->`, `where`, or `{`
66

77

8+
89
aborting due to `-Z treat-err-as-bug=1`
910
stack backtrace:
1011

Diff for: tests/ui/const-generics/generic_const_exprs/issue-80742.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
error: internal compiler error: compiler/rustc_const_eval/src/interpret/step.rs:LL:CC: SizeOf MIR operator called for unsized type dyn Debug
22
--> $SRC_DIR/core/src/mem/mod.rs:LL:COL
33

4+
45
Box<dyn Any>
56
query stack during panic:
67
#0 [eval_to_allocation_raw] const-evaluating + checking `<impl at $DIR/issue-80742.rs:26:1: 28:32>::{constant#0}`

Diff for: tests/ui/consts/const-eval/const-eval-query-stack.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ error: internal compiler error[E0080]: evaluation of constant value failed
44
LL | const X: i32 = 1 / 0;
55
| ^^^^^ attempt to divide `1_i32` by zero
66

7+
78
query stack during panic:
89
#0 [eval_to_allocation_raw] const-evaluating + checking `X`
910
#1 [eval_to_const_value_raw] simplifying constant for the type system `X`

Diff for: tests/ui/extern/extern-types-field-offset.run.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at library/core/src/panicking.rs:$LINE:$COL:
23
attempted to compute the size or alignment of extern type `Opaque`
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: tests/ui/extern/extern-types-size_of_val.align.run.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at library/core/src/panicking.rs:$LINE:$COL:
23
attempted to compute the size or alignment of extern type `A`
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: tests/ui/extern/extern-types-size_of_val.size.run.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at library/core/src/panicking.rs:$LINE:$COL:
23
attempted to compute the size or alignment of extern type `A`
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: tests/ui/higher-ranked/trait-bounds/future.current.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
error: the compiler unexpectedly panicked. this is a bug.
23

34
query stack during panic:

Diff for: tests/ui/hygiene/panic-location.run.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at library/alloc/src/raw_vec.rs:LL:CC:
23
capacity overflow
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/const-eval-select-backtrace-std.rs:6:8:
23
byte index 1 is out of bounds of ``
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/const-eval-select-backtrace.rs:15:5:
23
Aaah!
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Diff for: tests/ui/intrinsics/not-overridden.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ error: must be overridden by codegen backend, but isn't
44
LL | unsafe { const_deallocate(std::ptr::null_mut(), 0, 0) }
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66

7+
78
query stack during panic:
89
end of query stack
910
error: aborting due to 1 previous error

Diff for: tests/ui/issues/issue-87707.run.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
12
thread 'main' panicked at $DIR/issue-87707.rs:14:24:
23
Here Once instance is poisoned.
34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
5+
46
thread 'main' panicked at $DIR/issue-87707.rs:16:7:
57
Once instance has previously been poisoned

Diff for: tests/ui/layout/valid_range_oob.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
257 > 255
23
error: the compiler unexpectedly panicked. this is a bug.
34

Diff for: tests/ui/macros/assert-long-condition.run.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
thread 'main' panicked at $DIR/assert-long-condition.rs:7:5:
23
assertion failed: 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18
34
+ 19 + 20 + 21 + 22 + 23 + 24 + 25 == 0

Diff for: tests/ui/mir/lint/storage-live.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ note: delayed at compiler/rustc_mir_transform/src/lint.rs:97:26 - disabled backt
1111
LL | StorageLive(a);
1212
| ^^^^^^^^^^^^^^
1313

14+
1415
aborting due to `-Z treat-err-as-bug=1`
1516
error: the compiler unexpectedly panicked. this is a bug.
1617

Diff for: tests/ui/panics/default-backtrace-ice.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ LL | fn main() { missing_ident; }
55
| ^^^^^^^^^^^^^ not found in this scope
66

77

8+
89
aborting due to `-Z treat-err-as-bug=1`
910
stack backtrace:
1011
(end_short_backtrace)

Diff for: tests/ui/panics/fmt-only-once.run.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
fmt
2+
23
thread 'main' panicked at $DIR/fmt-only-once.rs:20:5:
34
PrintOnFmt
45
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

0 commit comments

Comments
 (0)