diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-11-26 15:32:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-26 15:32:17 +0100 |
| commit | a06532e6391fea733790e4f8c8ce20f89775fb61 (patch) | |
| tree | e6e2b69c582eb3e5aa66769b1e20fbdb91d758c7 /compiler/rustc_codegen_gcc | |
| parent | 7e3422fab2498d912df127ba0a6fd1e3c29f614d (diff) | |
| parent | 8bc8adb8dcaa268e2b2bd9093f8f4f4bcb0b1a45 (diff) | |
| download | rust-a06532e6391fea733790e4f8c8ce20f89775fb61.tar.gz rust-a06532e6391fea733790e4f8c8ce20f89775fb61.zip | |
Rollup merge of #133464 - RalfJung:whitespace-panic, r=joboet
std::thread: avoid leading whitespace in some panic messages
This:
```
panic!(
"use of std::thread::current() is not possible after the thread's
local data has been destroyed"
)
```
will print a newline followed by a bunch of spaces, since the entire string literal is interpreted literally.
I think the intention was to print the message without the newline and the spaces, so let's add some `\` to make that happen.
r? ``@joboet``
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
