about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-07-04 10:54:22 +0000
committerbors <bors@rust-lang.org>2024-07-04 10:54:22 +0000
commite2cf31a6148725bde4ea48acf1e4fe72675257a2 (patch)
tree13a7caadea1393bc7c671327c69ba2b239f6719c /compiler
parent9ffe52e05b063f5fea020d501216a35559ca8620 (diff)
parentc198c0e6d0556cec74d10aec998f4e229137c701 (diff)
downloadrust-e2cf31a6148725bde4ea48acf1e4fe72675257a2.tar.gz
rust-e2cf31a6148725bde4ea48acf1e4fe72675257a2.zip
Auto merge of #127120 - Kobzol:bootstrap-cmd-refactor-3, r=onur-ozkan
Bootstrap command refactoring: consolidate output modes (step 3)

This PR is a continuation to https://github.com/rust-lang/rust/pull/126731. It consolidates the output modes of bootstrap (`Print` vs `CaptureAll` vs `CaptureStdout`) and simplifies the logic around error printing (now a command error is always printed if the failure is not ignored). It also ports even more usages of `Command` to `BootstrapCommand`, most notably the git helpers and many usages of the `output` function.

The last commit was added because the third commit made two variants of the `Tool` enum unused (no idea why, but it seems to have been a false positive that they were used before).

It can be reviewed now, but I would wait with merging until at least a few days after https://github.com/rust-lang/rust/pull/126731, just to catch any potential issues from that PR before we move further.

As a next step, I want to clean up the API of the command a little bit to make usage easier (currently it's a bit verbose), and then continue with the rest of the tasks from the tracking issue.

As always, best reviewed commit by commit.

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

r? `@onur-ozkan`

try-job: aarch64-apple
Diffstat (limited to 'compiler')
0 files changed, 0 insertions, 0 deletions