rust/src
Matthias Krüger 19e32bfc81
Rollup merge of #129096 - Kobzol:bootstrap-cmd-verbosity, r=onur-ozkan
Print more verbose error for commands that capture output

https://github.com/rust-lang/rust/pull/128874 made bootstrap command errors less verbose without `-v`. However, in some cases it's too extreme. If a command fails, it now outputs just `Command has failed. Rerun with -v to see more details.`, without providing any context.

I think that I found a reasonable heuristic to figure out when we should print a more verbose error. When the command doesn't capture output, its stdout/stderr is printed, therefore the user sees context about the error. However, when the command captures its output, the user won't see any error message in the output, which is not great. So only in that case, bootstrap now prints a slightly more verbose output (and also prints the captured output).

r? `@onur-ozkan`
2024-08-15 19:32:36 +02:00
..
bootstrap Print more verbose error for commands that capture output 2024-08-15 18:31:43 +02:00
ci don't use --rustc-args to test the stdlib's size optimizations feature 2024-08-12 15:28:38 +00:00
doc Rollup merge of #128348 - dingxiangfei2009:allow-shadow-call-stack-sanitizer, r=tmandry 2024-08-15 19:32:35 +02:00
etc regenerate ./x completions 2024-08-12 15:28:39 +00:00
librustdoc Rollup merge of #128963 - GuillaumeGomez:output-to-stdout, r=aDotInTheVoid 2024-08-15 00:02:26 +02:00
llvm-project@57ae1a3474 trying common codepath for every unixes 2024-08-12 23:44:42 +01:00
rustdoc-json-types rustdoc-json-types Discriminant: fix typo 2024-08-09 20:50:00 +02:00
tools Rollup merge of #129065 - nnethercote:PartialEq-TokenKind, r=spastorino 2024-08-15 19:32:35 +02:00
README.md
stage0 Bump src/stage0 with determinism 2024-07-30 15:16:35 -07:00
version Bump to 1.82 2024-07-20 10:30:39 -04:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.