Commit graph

163915 commits

Author SHA1 Message Date
Jakub Beránek
33e6b7aa09
Update library cross-compilation test 2025-07-06 17:25:19 +02:00
Jakub Beránek
8d4d0502bd
Update Mode::ToolStd comment 2025-07-06 17:25:19 +02:00
Jakub Beránek
40176388d2
Add staging comment to check::Rustc 2025-07-06 17:25:19 +02:00
Jakub Beránek
38b09dd838
Add change tracker entry 2025-07-06 17:25:18 +02:00
Jakub Beránek
c054c115a5
Unify selection of build compiler for checking in a single function 2025-07-06 17:25:18 +02:00
Jakub Beránek
4a3cfaa745
Implement CoverageDump checking through the tool_check_step macro 2025-07-06 17:25:18 +02:00
Zalathar
b4da3bd872
Fixup check of rust-analyzer, codegen backends, compiletest and other tools 2025-07-06 17:25:12 +02:00
Jakub Beránek
9906de2510
Make build compiler explicit in check::Rustc and check::Std 2025-07-06 17:12:44 +02:00
Jakub Beránek
50e5599d1d
Remove custom_stage override from check::Std and make 1 be the default check stage for it 2025-07-06 17:12:43 +02:00
Jakub Beránek
0aa4ef964d
Make default check stage be 1, and error out on checking with stage 0 2025-07-06 17:12:43 +02:00
bors
c83e217d26 Auto merge of #143521 - matthiaskrgr:rollup-kpv1og3, r=matthiaskrgr
Rollup of 6 pull requests

Successful merges:

 - rust-lang/rust#143416 (mbe: Defer checks for `compile_error!` until reporting an unused macro rule)
 - rust-lang/rust#143470 (std: sys: net: uefi: tcp4: Implement read)
 - rust-lang/rust#143477 (use `is_multiple_of` and `div_ceil`)
 - rust-lang/rust#143484 (distinguish the duplicate item of rpitit)
 - rust-lang/rust#143493 (tidy: use --bless for tidy spellcheck instead of spellcheck:fix)
 - rust-lang/rust#143504 (compiletest: print slightly more information on fs::write failure)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-07-06 10:20:27 +00:00
Matthias Krüger
097efc07cc
Rollup merge of #143504 - RalfJung:compiletest-err, r=jieyouxu
compiletest: print slightly more information on fs::write failure

See [#t-infra > compiletest: panic in dump_output_file: No such file or dire @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/242791-t-infra/topic/compiletest.3A.20panic.20in.20dump_output_file.3A.20No.20such.20file.20or.20dire/near/527294714)
2025-07-06 10:03:24 +02:00
Matthias Krüger
e25654fb94
Rollup merge of #143493 - lolbinarycat:tidy-spellcheck-bless, r=Kobzol
tidy: use --bless for tidy spellcheck instead of spellcheck:fix

previous behavior was inconsistent with existing extra checks.

unsure if this needs a change tracker entry or a warning for people who try to use the old behavior.

unsure if we should call this `spellcheck:lint` for consistency.

making this consistent is a prerequisite for https://github.com/rust-lang/rust/pull/143398

cc `@nnethercote`

r? `@Kobzol`
2025-07-06 10:03:24 +02:00
bors
e804cd4a5f Auto merge of #143354 - Shourya742:2025-07-03-bye-bye-as_mut-command, r=Kobzol
Port streaming commands in bootstrap to `BootstrapCommand` and remove `as_command_mut`

This PR adds streaming capabilities to BootstrapCommand and migrate existing command streaming scenario's used in bootstrap.

r? `@Kobzol`
2025-07-06 07:13:02 +00:00
bors
febb10d0a2 Auto merge of #143507 - matthiaskrgr:rollup-lpg7t12, r=matthiaskrgr
Rollup of 6 pull requests

Successful merges:

 - rust-lang/rust#143238 (Port `#[ignore]` to the new attribute parsing infrastructure)
 - rust-lang/rust#143441 (Stop using `Key` trait unnecessarily)
 - rust-lang/rust#143478 (Miri subtree update)
 - rust-lang/rust#143486 (remove armv5te-unknown-linux-gnueabi target maintainer)
 - rust-lang/rust#143489 (Complete rustc_ast::mut_visit for spans.)
 - rust-lang/rust#143494 (Remove yields_in_scope from the scope tree.)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-07-06 04:09:12 +00:00
bors
75d5834a6c Auto merge of #143126 - dianqk:update-llvm, r=nikic
Update LLVM submodule

Fixes rust-lang/rust#140686, fixes rust-lang/rust#141913, fixes rust-lang/rust#142752, fixes rust-lang/rust#143399.
2025-07-06 01:03:18 +00:00
Matthias Krüger
5aa7be4473
Rollup merge of #143486 - husqvarnagroup:af/no-armv5te-target-maintainer, r=petrochenkov
remove armv5te-unknown-linux-gnueabi target maintainer

Sadly my former employer doesn't want to maintain this any more and I have no personal interest in maintaining it.
2025-07-05 22:34:42 +02:00
Matthias Krüger
7ad67e6b54
Rollup merge of #143478 - RalfJung:miri-sync, r=RalfJung
Miri subtree update

r? `@ghost`
2025-07-05 22:34:41 +02:00
binarycat
9f78173bb5 bootstrap: add change_tracker entry for removal of spellcheck:fix 2025-07-05 15:24:45 -05:00
Ralf Jung
9c9c5b041b compiletest: print slightly more information on fs::write failure 2025-07-05 22:21:23 +02:00
bit-aloo
312de35d3a
restructure try_run_tests 2025-07-06 00:11:20 +05:30
Ben Kimock
53757e6725
Rollup merge of #143447 - jieyouxu:compiletest-maintenance-4, r=Kobzol
[COMPILETEST-UNTANGLE 4/N] Improve compiletest config documentation

This is part of a patch series to untangle `compiletest` to hopefully nudge it towards being more maintainable.

This PR should contain **no functional changes**.

This is pulled out to its own PR to make follow-up changes easier to review.

There are *intentionally* a *lot* of FIXME comments, intended to be gradually addressed in follow-ups.

r? `@Kobzol`
2025-07-05 12:32:54 -04:00
binarycat
c1ed2ac8a2 tidy: add specific error message for trying to use spellcheck:fix. 2025-07-05 10:24:17 -05:00
binarycat
971feb6185 tidy: use --bless for tidy spellcheck instead of spellcheck:fix
previous behavior was inconsistent with existing extra checks.
2025-07-05 10:17:31 -05:00
bors
6dec76f1c2 Auto merge of #143474 - jieyouxu:bootstrap-llvm-snapshot, r=Kobzol
Pretend in bootstrap snapshot tests that we always build in-tree LLVM

Otherwise, depending on whether CI LLVM is inhibited or if an externally-provided LLVM is used, bootstrap host LLVM build step could be missing in step snapshots.

Note that I'm not sure if this is the *right* solution (this might be *a* solution). I imagine we do want to control for the set of configuration that these snapshot tests are run, as much as possible.

r? `@Kobzol`
2025-07-05 12:42:59 +00:00
Adrian Friedli
44d7238d86 remove armv5te-unknown-linux-gnueabi target maintainer 2025-07-05 13:24:24 +02:00
bors
fd9ca711a3 Auto merge of #143473 - workingjubilee:rollup-bxie7zg, r=scottmcm
Rollup of 11 pull requests

Successful merges:

 - rust-lang/rust#142440 (`tests/ui`: A New Order [14/N])
 - rust-lang/rust#143040 (Add `const Rem`)
 - rust-lang/rust#143086 (Update poison.rs to fix the typo (sys->sync))
 - rust-lang/rust#143202 (`tests/ui`: A New Order [18/N])
 - rust-lang/rust#143296 (`tests/ui`: A New Order [21/N])
 - rust-lang/rust#143297 (`tests/ui`: A New Order [22/N])
 - rust-lang/rust#143299 (`tests/ui`: A New Order [24/N])
 - rust-lang/rust#143300 (`tests/ui`: A New Order [25/N])
 - rust-lang/rust#143397 (test passing a `VaList` from rust to C)
 - rust-lang/rust#143410 (Block SIMD in transmute_immediate; delete `OperandValueKind`)
 - rust-lang/rust#143452 (Fix CLI completion check in `tidy`)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-07-05 09:37:08 +00:00
Jieyou Xu
7405e2a915
Improve compiletest config documentation
Including a bunch of FIXMEs.
2025-07-05 15:19:48 +08:00
Ralf Jung
72043e3181 fmt 2025-07-05 09:12:36 +02:00
Ralf Jung
61f3705920 Merge from rustc 2025-07-05 09:12:26 +02:00
Ralf Jung
1620117f94 Preparing for merge from rustc 2025-07-05 09:01:43 +02:00
Jieyou Xu
006e97a234
Pretend in bootstrap snapshot tests that we always build in-tree LLVM 2025-07-05 14:54:12 +08:00
bors
f0b67dd97d Auto merge of #139598 - compiler-errors:no-bound-var-symbol, r=WaffleLapkin
Remove `Symbol` from `Named` variant of `BoundRegionKind`/`LateParamRegionKind`

The `Symbol` is redundant, since we already store a `DefId` in the region variant. Instead, load the name via `item_name` when needed (which is almost always on the diagnostic path).

This introduces a `BoundRegionKind::NamedAnon` which is used for giving anonymous bound regions names, but which should only be used during pretty printing and error reporting.
2025-07-05 06:29:56 +00:00
Jubilee
77ae27084e
Rollup merge of #143452 - Kobzol:completions-fix, r=jieyouxu
Fix CLI completion check in `tidy`

The list of CLI completion files that were generated and that were checked by `x test tidy` was not synced. Recently, some PR only updated some of the files, which caused the rest of the files (not checked by `x test tidy`) to be dirty on `master`. This PR fixes the logic in bootstrap to always synchronize the list of completion paths.

Fixes: https://github.com/rust-lang/rust/issues/143451

r? `@jieyouxu`
2025-07-04 23:26:25 -07:00
Jubilee
b1234daf8c
Rollup merge of #142440 - Kivooeo:tf14, r=tgross35
`tests/ui`: A New Order [14/N]

> [!NOTE]
>
> Intermediate commits are intended to help review, but will be squashed prior to merge.

Some `tests/ui/` housekeeping, to trim down number of tests directly under `tests/ui/`. Part of rust-lang/rust#133895.

r? `@jieyouxu`
2025-07-04 23:26:19 -07:00
bit-aloo
8199c950e8
make mark_as_executed private 2025-07-05 11:32:21 +05:30
bit-aloo
0a57612e63
migrate render test to new bootstrap command streaming API's 2025-07-05 11:32:20 +05:30
bit-aloo
b891d9add1
migrate cargo streaming to new bootstrap command streaming API's 2025-07-05 11:32:13 +05:30
bit-aloo
3f3f12c341
add streaming command struct for (spawn + piping scenario) 2025-07-05 11:12:37 +05:30
Matthias Krüger
031bf9715a
Rollup merge of #143372 - cjgillot:bare-glob-map, r=petrochenkov
Remove names_imported_by_glob_use query.

Based on https://github.com/rust-lang/rust/pull/143247
r? ``@ghost`` for perf
2025-07-05 00:12:09 +02:00
Jakub Beránek
1a1f56174b
Update completions 2025-07-04 22:10:02 +02:00
Jakub Beránek
46ce66ff5c
Unify completion list between x test tidy and x run generate-completions 2025-07-04 22:10:02 +02:00
Jonathan Brouwer
027126ce0b
Port #[non_exhaustive] to the new attribute parsing infrastructure 2025-07-04 20:30:42 +02:00
Michael Goulet
74570e526e Same for types 2025-07-04 18:26:09 +00:00
Michael Goulet
42c9bfd2b9 Remove Symbol for Named LateParam/Bound variants 2025-07-04 18:14:22 +00:00
dianqk
1339b90550
Update LLVM submodule 2025-07-04 23:05:40 +08:00
Matthias Krüger
3a5da6c4d8
Rollup merge of #143420 - Kobzol:rdg-push, r=jieyouxu
rustc-dev-guide subtree update

Subtree update of https://github.com/rust-lang/rustc-dev-guide.

Created using https://github.com/rust-lang/josh-sync.

r? `@jieyouxu`
2025-07-04 16:22:38 +02:00
Matthias Krüger
2faf66d091
Rollup merge of #143387 - dpaoliello:shouldpanicfn, r=bjorn3
Make __rust_alloc_error_handler_should_panic a function

Fixes rust-lang/rust#143253

`__rust_alloc_error_handler_should_panic` is a static but was being exported as a function.

For most targets this doesn't matter, but Arm64EC Windows uses different decorations for exported variables vs functions, hence it fails to link when `-Z oom=abort` is enabled.

We've had issues in the past with statics like this (see rust-lang/rust#141061) but the tldr; is that Arm64EC needs symbols correctly exported as either a function or data, and data MUST and MUST ONLY be marked `dllimport` when the symbol is being imported from another binary, which is non-trivial to calculate for these compiler-generated statics.

So, instead, the easiest thing to do is to make `__rust_alloc_error_handler_should_panic` a function instead.

Since `__rust_alloc_error_handler_should_panic` isn't involved in any linking shenanigans, I've marked it as `AlwaysInline` with the hopes that the various backends will see that it is just returning a constant and perform the same optimizations as the previous implementation.

r? `@bjorn3`
2025-07-04 16:22:36 +02:00
Matthias Krüger
324aa5d4ba
Rollup merge of #143286 - Muscraft:track-diagnostics-note, r=WaffleLapkin
Make -Ztrack-diagnostics emit like a note

[#t-compiler/diagnostics > Rendering -Ztrack-diagnostics like a note](https://rust-lang.zulipchat.com/#narrow/channel/147480-t-compiler.2Fdiagnostics/topic/Rendering.20-Ztrack-diagnostics.20like.20a.20note/with/526608647)

As discussed on the Zulip thread above, I want to make `-Ztrack-diagnostics` emit like a `note`. This is because I find its current output jarring, and the fact that it gets rendered completely left-aligned, [even in the middle of a snippet](86e05cd300/tests/ui/track-diagnostics/track6.stderr), seems like something that should be changed. Turning it into a `note` seems like the best choice, as it would align it with the rest of the output, and `note` is already used for somewhat similar things, like seeing why a lint was fired.

---

Note: turning `-Ztrack-diagnostics` into a `note` will also make `annotate-snippets` API a bit cleaner
2025-07-04 16:22:35 +02:00
Camille GILLOT
2d3ff91add Remove names_imported_by_glob_use query. 2025-07-04 14:01:09 +00:00