rust/src
Michael Goulet 6963d74cd1
Rollup merge of #138078 - moxian:rember-warns, r=Kobzol
Reduce the noise of bootstrap changelog warnings in --dry-run mode

Presently x.py displays "There have been changes to x.py since you last updated:" note only once when run normally, but on every invocation when run with `--dry-run`.
The disparity is not exactly intentonal, but just a historical accident.
It was made to be printed once in https://github.com/rust-lang/rust/pull/117815 via storing `.last-warned-change-id` on disk in `{config.out}/bootstrap` (i.e. `build/bootstrap`) directory.
But that didn't quite work for `--dry-run`, since `{config.out}/bootsrap` points to `build/tmp-dry-run/bootstrap` which *isn't* created in dry-run mode, so file creation fails.
This got fixed in https://github.com/rust-lang/rust/pull/118789 and now `--dry-run` does not save `.last-warned-change-id` at all. (Nor does it read it, since it cannot know to read from non-dry-run location)

This PR simply stops displaying the changelog altogether in --dry-run mode.

<details>
<summary>previous attempt (outdated)</summary>
This PR takes a different approach, and instead of not-writing the stamp in `--dry-run` mode it instead tries harder to yes-write it, and, specifically, creates `build/tmp-dry-run/bootstrap` directory to do so. If neccessary (i.e. if there are changes newer than the `change-id` stamp of config.toml to warn about).
Note that `build/tmp-dry-run/` was *already* being created, so making an extra `boostrap` sub-folder should not meaningfully pollute the build dir.
</details>

(Apologies for the, perhaps, excessively wordy PR, I'm new to this)
2025-03-06 15:40:05 -05:00
..
bootstrap Rollup merge of #138078 - moxian:rember-warns, r=Kobzol 2025-03-06 15:40:05 -05:00
build_helper Rollup merge of #138046 - onur-ozkan:trim-include-str, r=jieyouxu 2025-03-06 15:40:01 -05:00
ci Rollup merge of #138053 - Kobzol:more-try-jobs, r=marcoieni 2025-03-06 15:40:02 -05:00
doc Rollup merge of #137728 - Darksonn:no-tuple-unsize, r=oli-obk 2025-03-05 21:46:44 +08:00
etc Rollup merge of #134063 - tgross35:dec2flt-refactoring, r=Noratrieb 2025-03-05 21:46:31 +08:00
gcc@48664a6cab Update gcc submodule 2025-02-26 09:23:52 +01:00
librustdoc Auto merge of #138031 - workingjubilee:rollup-5bsotpz, r=workingjubilee 2025-03-05 06:59:11 +00:00
llvm-project@1c3bb96fdb Update to LLVM 20 rc 3 2025-02-27 09:34:19 +01:00
rustc-std-workspace update rustc-std-workspace crates 2024-11-04 07:45:15 +01:00
rustdoc-json-types Fix rustdoc and clippy 2025-02-24 14:31:19 +01:00
tools Rollup merge of #138041 - thaliaarchi:use-prelude-size-of.boostrap-compiletest, r=jieyouxu 2025-03-06 15:40:01 -05:00
README.md
stage0 bump stage0 2025-02-18 08:51:01 -08:00
version Bump to version 1.87.0 2025-02-14 09:55:45 -08: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.