rust/src/tools
bors ab3924b298 Auto merge of #122565 - Zoxc:atomic-panic-msg, r=the8472
Try to write the panic message with a single `write_all` call

This writes the panic message to a buffer before writing to stderr. This allows it to be printed with a single `write_all` call, preventing it from being interleaved with other outputs. It also adds newlines before and after the message ensuring that only the panic message will have its own lines.

Before:
```
thread 'thread 'thread 'thread 'thread '<unnamed>thread 'thread 'thread 'thread '<unnamed><unnamed>thread '<unnamed>' panicked at ' panicked at <unnamed><unnamed><unnamed><unnamed><unnamed>' panicked at <unnamed>' panicked at src\heap.rssrc\heap.rs'
panicked at ' panicked at ' panicked at ' panicked at ' panicked at src\heap.rs' panicked at src\heap.rs::src\heap.rssrc\heap.rssrc\heap.rssrc\heap.rssrc\heap.rs:src\heap.rs:455455:::::455:455::455455455455455:455:99:::::9:9:
:
999:
999:
assertion failed: size <= (*queue).block_size:
:
assertion failed: size <= (*queue).block_size:
assertion failed: size <= (*queue).block_size:
:
:
assertion failed: size <= (*queue).block_sizeassertion failed: size <= (*queue).block_sizeassertion failed: size <= (*queue).block_size

assertion failed: size <= (*queue).block_size
assertion failed: size <= (*queue).block_sizeassertion failed: size <= (*queue).block_sizeerror: process didn't exit successfully: `target\debug\direct_test.exe` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)
```
After:
```

thread '<unnamed>' panicked at src\heap.rs:455:9:
assertion failed: size <= (*queue).block_size

thread '<unnamed>' panicked at src\heap.rs:455:9:
assertion failed: size <= (*queue).block_size

thread '<unnamed>' panicked at src\heap.rs:455:9:
assertion failed: size <= (*queue).block_size

error: process didn't exit successfully: `target\debug\direct_test.exe` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)
```

---

try-jobs: x86_64-gnu-llvm-18
2025-01-02 22:06:09 +00:00
..
build-manifest Promote powerpc64le-unknown-linux-musl to tier 2 with host tools 2024-12-06 04:35:21 +01:00
bump-stage0 move src/tools/build_helper into src/build_helper 2024-11-11 11:19:11 +03:00
cargo@d73d2caf9e Update cargo 2024-12-31 17:05:16 -05:00
cargotest
clippy Merge commit '609cd310be' into clippy-subtree-update 2024-12-26 15:15:54 +01:00
collect-license-metadata collect-license-metadata: move JSON to root, and add a 'check' mode 2024-11-25 14:14:57 +00:00
compiletest Simplify DebuggerCommands::parse_from to only take one prefix 2024-12-29 00:09:25 +11:00
coverage-dump coverage: Include the highest counter ID seen in .cov-map dumps 2024-10-11 21:04:37 +11:00
enzyme@2fe5164a24 Enzyme backend 2024-09-05 22:47:23 -04:00
error_index_generator Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
generate-copyright generate-copyright: Ensure output has UNIX line-endings for consistency. 2024-11-25 11:26:47 +00:00
generate-windows-sys
html-checker rustdoc: redesign toolbar and disclosure widgets 2024-09-10 17:56:05 -07:00
jsondocck jsondocck: Parse, don't validate commands. 2024-12-09 21:46:22 +00:00
jsondoclint Update rustc-hash to version 2 2024-10-20 00:12:49 -07:00
libcxx-version
linkchecker chore: fix typos 2024-12-30 14:56:21 +07:00
lint-docs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
lld-wrapper
llvm-bitcode-linker
miri Try to write the panic message with a single write_all call 2025-01-01 15:58:29 +01:00
miropt-test-tools Emit error on skip-filecheck test containing filecheck directives 2024-10-19 13:24:07 +00:00
nix-dev-shell chore: fix typos 2024-12-30 14:56:21 +07:00
opt-dist opt-dist: propagate channel info to bootstrap 2024-12-20 02:32:28 +08:00
remote-test-client
remote-test-server
replace-version-placeholder
rls
run-make-support run-make-support: re-export recursive_remove 2024-12-23 03:25:36 +08:00
rust-analyzer Auto merge of #134681 - lnicola:sync-from-ra, r=lnicola 2024-12-23 12:18:14 +00:00
rust-installer Fix typos 2024-12-31 12:33:36 +08:00
rustbook cargo update 2024-12-29 00:22:58 +00:00
rustc-perf@d5055e7804
rustc-perf-wrapper tools: fix build failure caused by PR #134420 2024-12-27 16:36:48 +08:00
rustdoc Link std statically in rustc_driver 2024-08-11 04:16:53 +02:00
rustdoc-gui Enable --no-sandbox option by default for rustdoc GUI tests 2024-10-04 12:11:23 +02:00
rustdoc-gui-test move src/tools/build_helper into src/build_helper 2024-11-11 11:19:11 +03:00
rustdoc-js rustdoc-search: show types signatures in results 2024-10-30 10:35:39 -07:00
rustdoc-themes Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustfmt Stabilize style_edition 2024 in-tree 2024-12-31 00:50:21 +00:00
suggest-tests Fix typos 2024-12-30 21:43:22 +08:00
tidy Rollup merge of #134973 - ericlehong:fix-typo, r=GuillaumeGomez 2025-01-01 22:04:16 +01:00
tier-check
unicode-table-generator update cfgs 2024-11-27 15:14:54 +00:00
unstable-book-gen Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
wasm-component-ld Update wasm-component-ld to 0.5.11 2024-12-03 10:22:08 -08:00
x
cherry-pick.sh
publish_toolstate.py Reformat Python code with ruff 2024-12-04 23:03:44 +01:00