rust/src/tools
bors c1e3f03e60 Auto merge of #127450 - Kobzol:bootstrap-cmd-refactor-5, r=onur-ozkan
Bootstrap command refactoring: improve debuggability (step 5)

Continuation of https://github.com/rust-lang/rust/pull/127321.

This PR improves the debuggability of command execution, by improving the output logged when a command fails (it now includes the exact location where the command was created and where it was executed), and also by adding a "drop bomb", which will panic if a command was created, but not executed (which is probably a bug).

Here is how the output of a failed command looks like:
```
Command "git" "foo" "[bar]" (failure_mode=Exit, stdout_mode=Capture, stderr_mode=Capture) did not execute successfully.
Expected success, got exit status: 1
Created at: src/core/build_steps/compile.rs:1699:9
Executed at: src/core/build_steps/compile.rs:1699:58

STDOUT ----

STDERR ----
git: 'foo' is not a git command. See 'git --help'.
```

And this is what is printed if you forget to execute a command:
```
thread 'main' panicked at /projects/personal/rust/rust/src/tools/build_helper/src/drop_bomb/mod.rs:42:13:
command constructed at `src/core/build_steps/compile.rs:1699:9` was dropped without being executed: `git`
```

Best reviewed commit by commit.

Tracking issue: https://github.com/rust-lang/rust/issues/126819

r? `@onur-ozkan`
2024-07-13 09:44:05 +00:00
..
build-manifest Rollup merge of #126298 - heiher:loongarch64-musl-ci, r=Mark-Simulacrum 2024-06-24 06:27:13 +02:00
build_helper Improve error message of drop bombs 2024-07-12 20:15:19 +02:00
bump-stage0 move comments position in src/stage0 2024-05-11 20:49:01 +03:00
cargo@154fdac39a Update cargo 2024-07-07 10:21:28 -04:00
cargotest
clippy Merge commit 'b794b8e08c' into clippy-subtree-update 2024-07-11 15:44:03 +02:00
collect-license-metadata
compiletest compiletest: Better error message for bad normalize-* headers 2024-07-11 21:51:20 +10:00
coverage-dump Add an alternate --demangle mode to coverage-dump 2024-05-31 21:52:45 +10:00
error_index_generator
generate-copyright
generate-windows-sys Update windows-bindgen to 0.58.0 2024-07-04 12:18:38 +00:00
html-checker rustdoc: allow custom element rustdoc-search 2024-05-06 21:50:27 -07:00
jsondocck Rollup merge of #127309 - its-the-shrimp:jsondocck_add_file_var, r=aDotInTheVoid 2024-07-04 18:16:25 +02:00
jsondoclint Add rustdoc-json support for use<> 2024-07-12 05:24:51 -04:00
libcxx-version skip src/tools/libcxx-version from tidy 2024-06-06 07:01:37 +03:00
linkchecker add new_range_api for RFC 3550 2024-07-05 16:33:58 -06:00
lint-docs lint-docs: apply considerable clippy suggestions 2024-06-13 18:41:47 +03:00
lld-wrapper Fix typos (taking into account review comments) 2024-05-18 18:12:18 +02:00
llvm-bitcode-linker Distribute LLVM bitcode linker as a preview component 2024-04-15 15:11:28 +02:00
miri Rollup merge of #127355 - aceArt-GmbH:126475, r=oli-obk 2024-07-08 16:28:15 +02:00
miropt-test-tools
opt-dist opt-dist: apply considerable clippy suggestions 2024-06-13 18:41:49 +03:00
remote-test-client Give remote-test-client a longer timeout 2024-07-02 10:09:40 -07:00
remote-test-server remote-test-server: apply considerable clippy suggestions 2024-06-13 18:41:43 +03:00
replace-version-placeholder
rls
run-make-support Auto merge of #127450 - Kobzol:bootstrap-cmd-refactor-5, r=onur-ozkan 2024-07-13 09:44:05 +00:00
rust-analyzer Rollup merge of #120248 - WaffleLapkin:bonk-ptr-object-casts, r=compiler-errors,oli-obk,lnicola 2024-07-08 16:28:15 +02:00
rust-installer Add support for mtime override to generate and combine rust-installer commands 2024-06-29 23:30:57 +02:00
rustbook Add translation support by mdbook-i18n-helpers to bootstrap 2024-06-03 16:48:27 +09:00
rustc-perf@c64bb60dd1 Update rustc-perf submodule 2024-06-12 11:45:52 +02:00
rustc-perf-wrapper Review changes 2024-06-29 16:07:22 +02:00
rustdoc Change SIGPIPE ui from #[unix_sigpipe = "..."] to -Zon-broken-pipe=... 2024-05-02 19:48:29 +02:00
rustdoc-gui Other EcmaScript version bump 2024-06-07 08:44:52 +08:00
rustdoc-gui-test compiletest: Allow multiple //@ run-flags: headers 2024-06-07 01:51:57 +10:00
rustdoc-js Other EcmaScript version bump 2024-06-07 08:44:52 +08:00
rustdoc-themes
rustfmt Implement RTN support in rustfmt 2024-06-28 14:20:44 -04:00
suggest-tests Remove direct dependencies on lazy_static, once_cell and byteorder 2024-04-28 14:35:00 +01:00
tidy Rollup merge of #127381 - Oneirical:testalt-consciousness, r=jieyouxu 2024-07-12 13:47:08 -07:00
tier-check
unicode-table-generator Add a lower bound check to unicode-table-generator output 2024-04-20 10:16:45 +02:00
unstable-book-gen
x
cherry-pick.sh
publish_toolstate.py CI: fix toolstate publishing 2024-05-15 15:48:52 +02:00