about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-07-11tidy: use write_allMarijn Schouten-1/+1
2025-07-11tidy: use flatten instead of manual flattenMarijn Schouten-5/+3
2025-07-11tidy: move to edition 2024Marijn Schouten-5/+6
2025-07-11tidy: simplify fluent file extension checkingMarijn Schouten-3/+3
2025-07-11tidy: clippy fixesMarijn Schouten-95/+79
2025-07-11x: use let-elseMarijn Schouten-5/+4
2025-07-11x: move to edition 2024Marijn Schouten-1/+1
2025-07-11x: clippy fixesMarijn Schouten-8/+5
2025-07-11Rollup merge of #143708 - epage:pretty, r=compiler-errorsMatthias Krüger-26/+25
fix: Include frontmatter in -Zunpretty output In the implementation (rust-lang/rust#140035), this was left as an open question for the tracking issue (rust-lang/rust#136889). My assumption is that this should be carried over. The test was carried over from rust-lang/rust#137193 which was superseded by rust-lang/rust#140035. Thankfully, either way, `-Zunpretty` is unstable and we can always change it even if we stabilize frontmatter.
2025-07-11update cargo_metadata to 0.21.0asahi-myzk-5/+36
2025-07-10Rollup merge of #143707 - Kobzol:bootstrap-std-check, r=jieyouxuTrevor Gross-7/+31
Fix `--skip-std-check-if-no-download-rustc` Since https://github.com/rust-lang/rust/pull/143048, we now explicitly set the build compiler for `check::Std`, which caused it to be built before we checked `--skip-std-check-if-no-download-rustc`. So I moved the check earlier to `make_run`, which resolves it. I also added a regression test for this. Sadly we can't really test for the positive case easily (when download-ci-rustc is enabled), but we can test the negative cases, where it is disabled. Fixes: https://github.com/rust-lang/rust/issues/143705 r? ```@RalfJung```
2025-07-10Rollup merge of #140136 - dpaoliello:arm64winci, r=KobzolTrevor Gross-5/+47
Add an aarch64-msvc build running on ARM64 Windows Resurrecting rust-lang/rust#126341 Per <https://github.com/rust-lang/rfcs/pull/3817> we intend to promote `aarch64-pc-windows-msvc` to Tier 1. As part of that work, we are adding a pre-merge CI job to validate that changes do not break this target. Additionally, for consistency, the `dist-aarch64-msvc` job will also be run on Arm64 Windows runners. r? ``@Kobzol`` try-job: `*aarch64-msvc*`
2025-07-11Split up the `unknown_or_malformed_diagnostic_attributes` lintmejrs-0/+4
2025-07-10Merge pull request #20228 from ChayimFriedman2/fix-use-displayChayim Refael Friedman-0/+1
fix: Fix display of `use<>` syntax
2025-07-11Fix display of `use<>` syntaxChayim Refael Friedman-0/+1
2025-07-10Auto merge of #143746 - matthiaskrgr:rollup-yaojj7t, r=matthiaskrgrbors-112/+258
Rollup of 9 pull requests Successful merges: - rust-lang/rust#143446 (use `--dynamic-list` for exporting executable symbols) - rust-lang/rust#143590 (Fix weird rustdoc output when single and glob reexport conflict on a name) - rust-lang/rust#143599 (emit `.att_syntax` when global/naked asm use that option) - rust-lang/rust#143615 (Fix handling of no_std targets in `doc::Std` step) - rust-lang/rust#143632 (fix: correct parameter names in LLVMRustBuildMinNum and LLVMRustBuildMaxNum FFI declarations) - rust-lang/rust#143640 (Constify `Fn*` traits) - rust-lang/rust#143651 (Win: Use exceptions with empty data for SEH panic exception copies instead of a new panic) - rust-lang/rust#143660 (Disable docs for `compiler-builtins` and `sysroot`) - rust-lang/rust#143665 ([rustdoc-json] Add tests for `#[doc(hidden)]` handling of items.) r? `@ghost` `@rustbot` modify labels: rollup
2025-07-10Add target maintainer information for aarch64-unknown-linux-muslJens Reidel-1/+51
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2025-07-10Rollup merge of #143660 - cuviper:lib-doc-false, r=tgross35Matthias Krüger-4/+0
Disable docs for `compiler-builtins` and `sysroot` Bootstrap already had a manual doc filter for the `sysroot` crate, but other library crates keep themselves out of the public docs by setting `[lib] doc = false` in their manifest. This seems like a better solution to hide `compiler-builtins` docs, and removes the `sysroot` hack too. Fixes rust-lang/rust#143215 (after backport) ```@rustbot``` label beta-nominated
2025-07-10Rollup merge of #143615 - Kobzol:doc-std, r=jieyouxuMatthias Krüger-68/+174
Fix handling of no_std targets in `doc::Std` step The previous logic was wrong for no_std targets, it just didn't do anything. The logic was added there because by default, the `Std` step would otherwise have a list of all std crates to check, but these would fail for no_std targets. What has to happen instead is to select the default set of packages to check/doc/build, which currently happens in the `std_cargo` function, but the `self.crates` list was overriding that. In general, using `crates: Vec<String>` in the `Std` steps is quite fishy, because it's difficult to distinguish between all crates (either they are all enumerated or `crates` is empty) and the default (e.g. `x <kind> [library]`) vs a subset (e.g. `x <kind> core`). I wanted to improve that using an enum that would distinguish these situations, avoid passing `-p` for all of the crates explicitly, and unify the selection of packages to compile/check/... in `std_cargo`, based on this enum. However, I found out from some other bootstrap comments that when you pass `-p` explicitly for all crates, cargo behaves differently (apparently for check it will also check targets/examples etc. with `-p`, but not without it). Furthermore, the doc step has a special case where it does not document the `sysroot` package. So as usually, unifying this logic would get into some edge cases... So instead I opted for a seemingly simpler solution, where I try to prefilter only two allowed crates (core and alloc) for no_std targets in the `std_crates_for_run_make` function. It's not perfect, but I think it's better than the status quo (words to live by when working on bootstrap...). Fixes [this Zulip topic](https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/docs.20for.20non-host.20targets.3F). r? `@jieyouxu`
2025-07-10Rollup merge of #143590 - GuillaumeGomez:reexport-shadowing, r=lolbinaryMatthias Krüger-40/+84
Fix weird rustdoc output when single and glob reexport conflict on a name Fixes rust-lang/rust#143107. The problem was that the second reexport would overwrite the first, leading to having unexpected results. To fix it, I now group items by their original `DefId` and their name and keep tracks of all imports for this item (should very rarely be more than one though, and even less often more than 2). cc `@lolbinarycat`
2025-07-10Merge commit 'cdbbf3afda0b1bf51568b368f629b1d828507f98' into ↵Philipp Krones-476/+2760
clippy-subtree-update
2025-07-10Remove `min-specialization` feature from `WasmComponentLd`Jakub Beránek-1/+1
2025-07-10Auto merge of #143525 - Shourya742:2025-07-06-add-profiler, r=Kobzolbors-30/+227
Add profiler to bootstrap command This PR adds command profiling to the bootstrap command. It tracks the total execution time and records cache hits for each command. It also provides the ability to export execution result to a JSON file. Integrating this with Chrome tracing could further enhance observability. r? `@Kobzol`
2025-07-10interpret/allocation: expose init + write_wildcards on a rangeNia Espera-3/+4
2025-07-10Rollup merge of #143683 - jieyouxu:rms-cleanup, r=KobzolMatthias Krüger-188/+85
Assorted `run-make-support` maintenance This PR should contain no functional changes. - Commit 1: Removes the support library's CHANGELOG. In the very beginning, I thought maybe we would try to version this library. But this is a purely internal test support library, and it's just extra busywork trying to maintain changelog/versions. It's also hopelessly outdated. - Commit 2: Resets version number to `0.0.0`. Ditto on busywork. - Commit 3: Bump `run-make-support` to Edition 2024. The support library was already "compliant" with Edition 2024. - Commit 4: Slightly organizes the support library dependencies. - Commit 5: Previously, I tried hopelessly to maintain some manual formatting, but that was annoying because it required skipping rustfmt (so export ordering etc. could not be extra formatted). Give up, and do some rearrangements / module prefix tricks to get the `lib.rs` looking at least *reasonable*. IMO this is not a strict improvement, but I rather regain the ability to auto-format it with rustfmt. - Commit {6,7}: Noticed in rust-lang/rust#143669 that we apparently had *both* {`is_msvc`, `is_windows_msvc`}. This PR removes `is_msvc` in favor of `is_windows_msvc` to make it unambiguous (and only retain one way of gating) as there are some UEFI targets which are MSVC but not Windows. Best reviewed commit-by-commit. r? `@Kobzol`
2025-07-10Rollup merge of #143670 - loganek:loganek/wasm32-wasip1-new-maintainer, ↵Matthias Krüger-0/+1
r=alexcrichton Add a new maintainer to the wasm32-wasip1 target cc: `@alexcrichton`
2025-07-10Rollup merge of #136906 - chenyukang:yukang-fix-136741-closure-body, r=oli-obkMatthias Krüger-6/+12
Add checking for unnecessary delims in closure body Fixes #136741
2025-07-10update rust-dev-guide to point about new command execution summary report ↵bit-aloo-2/+9
under bootstrap profiling section
2025-07-10enable report summary when BOOTSTRAP_PROFILE is setbit-aloo-2/+14
2025-07-10expose report summary via buildbit-aloo-1/+5
2025-07-10update streaming to record its execution via commandprofilerbit-aloo-5/+11
2025-07-10add commandProfiler to bootstrap execution contextbit-aloo-1/+154
2025-07-10change cachekey to CommandFingerprint and change related API's and add start ↵bit-aloo-19/+34
time to deferred execution
2025-07-10Merge pull request #20054 from Young-Flash/folding_allShoyu Vanilla (Flint)-3/+52
feat: support folding multiline arg list & fn body in one folding range
2025-07-10Clarify `get_tool_target_compiler`Jakub Beránek-3/+9
2025-07-10Rename `for_compiler` to `for_use_by_compiler`Jakub Beránek-12/+15
2025-07-10Migrate `generate_impl` assist to use `SyntaxEditor`Hayashi Mikihiro-9/+16
2025-07-10Migrate rustc-pull to CI workflow from `josh-sync`Jakub Beránek-102/+9
2025-07-10Mention that compiler-builtins is now using `rustc-josh-sync`Jakub Beránek-1/+2
2025-07-10Rollup merge of #143398 - lolbinarycat:tidy-extra-checks-auto, r=KobzolTrevor Gross-48/+241
tidy: add support for `--extra-checks=auto:` feature in preparation for rust-lang/rust#142924 also heavily refactored the parsing of the `--extra-checks` argument to warn about improper usage. cc ```@GuillaumeGomez``` r? ```@Kobzol```
2025-07-10silence clippyRalf Jung-0/+1
2025-07-10Merge pull request #2499 from rust-lang/tshepang-patch-2nora-1/+3
distcheck has only one possible invocation
2025-07-10Merge pull request #20210 from ChayimFriedman2/naked-asm-safeShoyu Vanilla (Flint)-84/+303
fix: Inline asm fixes
2025-07-10Merge pull request #2500 from rust-lang/tshepang-patch-3nora-1/+1
do not invent a name
2025-07-10Fix `--skip-std-check-if-no-download-rustc`Jakub Beránek-7/+31
Since https://github.com/rust-lang/rust/pull/143048, we now explicitly set the build compiler for `check::Std`, which caused it to be built before we checked `--skip-std-check-if-no-download-rustc`. So I moved the check earlier to `make_run`, which resolves it. I also added a regression test for this. Sadly we can't really test for the positive case easily (when download-ci-rustc is enabled), but we can test the negative cases, where it is disabled.
2025-07-10Only provide `is_windows_msvc` to gate on windows-msvcJieyou Xu-34/+29
And not both `is_windows_msvc` and `is_msvc`.
2025-07-10remove unnecessary parens in rust-analyzeryukang-1/+1
2025-07-10Revert "remove `if-let` chains"Laurențiu Nicola-7/+6
This reverts commit fcc81a38b3ed55447735f71e8d374fcb36c22f24.
2025-07-10fmtThe Miri Cronjob Bot-1/+3
2025-07-10Merge from rustcThe Miri Cronjob Bot-854/+3420