331191 Commits

Author SHA1 Message Date
bors 08d5b675a9 Auto merge of #159182 - weihanglo:beta-1.98-backport, r=weihanglo
[beta-1.98] Update cargo submodule

1 commits in f40cc7a13a8ebe3dd0a35b1e0e37a1e26c8bb0e5..864064524a7205e670579b6873d9b18897437eaf
2026-07-01 18:57:21 +0000 to 2026-07-12 08:11:54 -0700
- [beta 1.98] Backport new `build-dir` layout bug fixes (rust-lang/cargo#17207)
2026-07-12 20:00:42 +00:00
Weihang Lo 8761ba0d7d [beta-1.98] Update cargo submodule 2026-07-12 11:42:55 -04:00
bors 6b3fa26749 Auto merge of #158829 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] branch 1.98 beta

https://forge.rust-lang.org/release/process.html#beta-pr

r? me
2026-07-06 00:42:21 +00:00
Mark Rousskov dcab53adb3 Bump channel from nightly to beta 2026-07-05 16:55:32 -04:00
Mark Rousskov eaa172c565 replace-version-placeholder 2026-07-05 16:55:05 -04:00
bors 7148b31956 Auto merge of #158169 - Kobzol:fix-cc-rs-flag-if-supported, r=bjorn3
Fix debuginfo compression in bootstrap



Found through https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/weird.20code.20in.20fill_target_compiler/with/604588655.

This PR solves a few issues with debuginfo compression in bootstrap.

The main issue was that debuginfo compression through the `-gz` flag wasn't enabled, by mistake.

When `cc-rs` checks if a compiler flag is supported, it tries to read `out_dir` to generate the source file in. However, when this option is not set, then the check silently fails and the flag is considered to be unsupported. Since we didn't set `out_dir`, all such added flags were simply ignored.

Normally, it reads `OUT_DIR`, which is fine if `cc-rs` is used within a build script. But if it is used elsewhere, then this is a pretty gnarly footgun in `cc-rs`, because the failure is [completely silent](https://github.com/rust-lang/cc-rs/blob/main/src/lib.rs#L1483).  CC @madsmtm or @NobodyXu in case you have thoughts on that :)

After that was fixed, I had to change the used compression flag from `-gz` to `--compress-debug-sections`, to support both BFD and LLD linkers.

And to solve it properly, and allow `dist` CI jobs to configure debuginfo compression for all targets that they build, I added a new bootstrap option to configure debuginfo compression.

I wanted the flag to be configurable both globally and per target. At the same time, the flag applies both to C/C++ and Rust. We currently don't have such config area in `bootstrap.toml`, and `[build]` didn't seem like the right place, so I shoved it into `[rust]` (while documenting that it also applies to C/C++).

r? @bjorn3

try-job: dist-x86_64-msvc
try-job: dist-x86_64-apple
try-job: dist-x86_64-linux
try-job: dist-various-1
try-job: dist-various-2
2026-07-05 12:04:25 +00:00
bors 4eb62535fc Auto merge of #158795 - JonathanBrouwer:rollup-vhfdJ4m, r=JonathanBrouwer
Rollup of 21 pull requests

Successful merges:

 - rust-lang/rust#158100 (Emit retags in codegen to support BorrowSanitizer (part 4))
 - rust-lang/rust#158494 (Improve E0277 diagnostics for conditionally implemented traits)
 - rust-lang/rust#158606 (use ProjectionPredicate instead of AliasRelate)
 - rust-lang/rust#158627 (Simplify option-iterator flattening in the compiler)
 - rust-lang/rust#158658 (Update LLVM submodule)
 - rust-lang/rust#158665 (Revert "Remove redundant dyn-compatibility check.")
 - rust-lang/rust#158021 (Remove old MinGW workaround)
 - rust-lang/rust#158473 (Add `riscv32imfc-unknown-none-elf` bare-metal target)
 - rust-lang/rust#158549 (process::exec: using appropriate exit code on vxworks.)
 - rust-lang/rust#158585 (Improve diagnostic for too many super keywords)
 - rust-lang/rust#158637 (hir_ty_lowering: avoid self type lookup for inherent aliases)
 - rust-lang/rust#158651 (ptr doc: reduce use of unsafe block to where needed)
 - rust-lang/rust#158669 (Remove `src/tools/test-float-parse/Cargo.lock`)
 - rust-lang/rust#158674 (library: Polish transmute's `split_at_stdlib` example)
 - rust-lang/rust#158677 (Add extra splat tests)
 - rust-lang/rust#158680 (Avoid ICE for `NonZero<char>` in improper_ctypes)
 - rust-lang/rust#158681 (Remove unnecessary `Hash` derives from MIR types)
 - rust-lang/rust#158682 (Avoid delayed bug for disabled on_type_error arguments)
 - rust-lang/rust#158684 (Add missing generic test coverage for ```#[splat]```)
 - rust-lang/rust#158687 (Streamline `MacEager`)
 - rust-lang/rust#158688 (Cleanup attribute docs and add links to other mentioned attributes)
2026-07-05 07:24:27 +00:00
Jonathan Brouwer 3755fd95ad Rollup merge of #158688 - GuillaumeGomez:attr-doc-cleanup, r=mejrs
Cleanup attribute docs and add links to other mentioned attributes

It's always nicer to be able to jump to the item being mentioned directly without having to go through search.

Also, cleaned up a few small things like `rust` attribute in codeblocks which is the default, so it's redundant.
2026-07-05 08:47:16 +02:00
Jonathan Brouwer af430b4365 Rollup merge of #158687 - nnethercote:streamline-MacEager, r=petrochenkov
Streamline `MacEager`

Details in individual commits.

r? @petrochenkov
2026-07-05 08:47:16 +02:00
Jonathan Brouwer b669f0d08c Rollup merge of #158684 - Ajay-singh1:ui-tests-for-splat, r=teor2345
Add missing generic test coverage for ```#[splat]```

This PR adds missing test coverage for `#[splat]` that was marked as FIXME in `splat-generics-everywhere.rs`:

- Add generic parameter to `BarTrait` (`BarTrait<T>`)
- Add `generic_in_tuple` , tests generics inside the splatted tuple
- Add `generic_tuple_assoc` , tests assoc functions with splatted generic tuple traits
- Add `trait_generic_in_tuple` , tests generics inside splatted tuple on trait methods
- Add `trait_generic_tuple` , tests splatted generic tuple trait bounds on trait methods

Removes the resolved FIXME comments:
- also add generics to the trait
- also add assoc/method with splatted generic tuple traits
- also add generics inside the splatted tuple

CC:- @teor2345

r? @teor2345
2026-07-05 08:47:15 +02:00
Jonathan Brouwer 17ec372a59 Rollup merge of #158682 - TaKO8Ki:fix-158628-on-type-error-args, r=JonathanBrouwer
Avoid delayed bug for disabled on_type_error arguments

Fixes rust-lang/rust#158628

This updates the disabled-feature path to call `args.ignore_args()`, matching the behavior of other diagnostic attributes.

example: https://github.com/rust-lang/rust/blob/c397dae808f70caebab1fc4e11b3edf7e59f58c7/compiler/rustc_attr_parsing/src/attributes/diagnostic/on_unknown.rs#L13-L21
2026-07-05 08:47:15 +02:00
Jonathan Brouwer e71e76c432 Rollup merge of #158681 - nnethercote:mir-derives-FIDDLING, r=oli-obk
Remove unnecessary `Hash` derives from MIR types

This starts with `StatementKind` and `TerminatorKind`; they don't need hashing. That then allows the removal of the `Hash` impl of various other types.

r? @dingxiangfei2009
2026-07-05 08:47:14 +02:00
Jonathan Brouwer 7d8b0a97ae Rollup merge of #158680 - TaKO8Ki:fix-nonzero-char-improper-ctypes-ice, r=oli-obk
Avoid ICE for `NonZero<char>` in improper_ctypes

Fixes rust-lang/rust#158511

This pr enables `get_nullable_type` to return `char` as the carrier for `NonZero<char>` and replaces the raw `unwrap()` with an `expect()` message.
2026-07-05 08:47:13 +02:00
Jonathan Brouwer 63f9378a93 Rollup merge of #158677 - teor2345:extra-splat-tests, r=wesleywiser
Add extra splat tests

This PR is part of the splat lang experiment rust-lang/rust#153629.

It adds a bunch of tests for existing splat functionality, but doesn't make any compiler code changes.

Edit: split off from PR rust-lang/rust#158645

@rustbot label +F-splat +T-compiler
2026-07-05 08:47:12 +02:00
Jonathan Brouwer 3bfc916efd Rollup merge of #158674 - workingjubilee:polish-mem-transmute, r=jhpratt
library: Polish transmute's `split_at_stdlib` example

Splitting assembling the return value over multiple let-bindings enables pedagogic discussion of each named let-binding.

The `slice` arg was renamed to remove any chance of visual confusion with use of `core::slice` functions or "slice" per se.
2026-07-05 08:47:11 +02:00
Jonathan Brouwer 9a966475fa Rollup merge of #158669 - cuviper:unlock-test-float-parse, r=jieyouxu
Remove `src/tools/test-float-parse/Cargo.lock`

This tool is part of the main workspace, so its own lock file is unused,
and the file is clearly outdated for its current dependencies anyway.
2026-07-05 08:47:11 +02:00
Jonathan Brouwer 8e738579bb Rollup merge of #158651 - tshepang:restrict-use-of-unsafe, r=LawnGnome
ptr doc: reduce use of unsafe block to where needed
2026-07-05 08:47:10 +02:00
Jonathan Brouwer d03da06017 Rollup merge of #158637 - Dnreikronos:hir_ty_lowering/skip_inherent_projection_self_ty, r=davidtwco
hir_ty_lowering: avoid self type lookup for inherent aliases

fixes rust-lang/rust#158512

the crash happens while building the unsatisfied-bounds diagnostic for an inherent associated alias. that path was calling `self_ty()` directly, so an empty args list could panic under the global next solver.

imo the guard belongs in the diagnostic code. it keeps the existing span label when the inherent alias still has a self arg, and only skips that label when the args are already malformed.
2026-07-05 08:47:09 +02:00
Jonathan Brouwer f26d34695a Rollup merge of #158585 - andrewkernel:improve-too-many-super-diagnostic, r=davidtwco
Improve diagnostic for too many super keywords

Fixes rust-lang/rust#158275

When resolving a path with too many leading `super` segments inside a nested module,
include the current module path in the diagnostic. This makes it easier to see where
the `super` chain started, especially for generated code or code included from
another location.

The overflowing `super` label now also explains that it would go above the crate root.

Example:

```text
error[E0433]: too many leading `super` keywords within `crate::outer::inner`
  --> tests/ui/resolve/too-many-super-issue-158275.rs:5:38
   |
LL |         struct Example(super::super::super::Impl);
   |                                      ^^^^^ this `super` would go above the crate root
```

Tests:

```text
x.py --build x86_64-pc-windows-gnu --host x86_64-pc-windows-gnu check compiler/rustc_resolve --stage 1
x.py --build x86_64-pc-windows-gnu --host x86_64-pc-windows-gnu test tidy
```
2026-07-05 08:47:09 +02:00
Jonathan Brouwer d79878ead2 Rollup merge of #158549 - devnexen:vxworks_exit_status_fix, r=clarfonthey
process::exec: using appropriate exit code on vxworks.
2026-07-05 08:47:08 +02:00
Jonathan Brouwer 3b20143032 Rollup merge of #158473 - hispark-rs:riscv32imfc-unknown-none-elf, r=davidtwco
Add `riscv32imfc-unknown-none-elf` bare-metal target

This adds a new tier 3 bare-metal target for RV32IMFC cores: RISC-V 32-bit with
the `M`, `F` (hardware single-precision float, `ilp32f` ABI) and `C` extensions,
but **no** atomic (`A`) extension.

## Why a new builtin target

No builtin target pairs **hardware single-float** with **no atomics** today:

- `riscv32imafc-unknown-none-elf` (tier 2) has hard-float but *requires* `A`.
- `riscv32imc-unknown-none-elf` has no atomics but is **soft-float** (`ilp32`).

Cores that have an `F` unit but no `A` extension (a common shape for the
application core of low-power Wi-Fi/BT SoCs, where vendor-supplied closed binary
blobs are compiled with the `ilp32f` ABI, so the soft-float ABI is incompatible)
currently have to ship a custom JSON target spec and build `core` with
`-Zbuild-std` on nightly. There is **no stable path today**: custom target specs
are nightly-only, and the spec drifts with each nightly. A builtin target lets
these users stay on stable with a precompiled `core`. The motivating hardware
includes the application core of SoCs such as the HiSilicon WS63/BS2X family, but
the target itself is vendor-neutral.

A working nightly + `-Zbuild-std` proof of concept (builds `core`/`alloc`,
confirms hard-float `fmul.s`/`fadd.s`, and that atomics lower to plain `lw`/`sw`
with zero `amo*`/`lr.w`/`sc.w`): https://github.com/hispark-rs/hisi-riscv-imfc-poc

## How it is defined

It is `riscv32imafc-unknown-none-elf` minus the `A` extension, handled exactly the
way the existing `riscv32imc-unknown-none-elf` handles a no-`a` core:

- `features = "+m,+f,+c,+forced-atomics"`, `llvm_abiname = ilp32f`
- `atomic_cas = false`: `lr.w`/`sc.w`/`amo*` are never emitted, so the target does
  not trap on a core without `A`. `+forced-atomics` lowers atomic load/store to
  plain load/store (sound on a single hart); compare-and-swap and other RMW
  atomics are off, so downstream crates use a critical-section polyfill (e.g.
  `portable-atomic`'s `critical-section` feature) for those.

## Changes

- New target spec `riscv32imfc_unknown_none_elf.rs` + registration in `spec/mod.rs`.
- Added to the `tests/assembly-llvm/targets/targets-elf.rs` sanity test (satisfies
  the `target_policy` and `target_specific_tests` tidy checks).
- Documented on the shared `riscv32-unknown-none-elf` platform-support page and
  listed in `platform-support.md`.

## Verification

- `./x test tidy` — passes.
- `./x test tests/assembly-llvm/targets/targets-elf.rs` — passes (262 passed,
  0 failed); satisfies the "must be able to produce assembly" requirement.

## Tier 3 target policy

Acknowledgement of each [tier 3 target policy](https://doc.rust-lang.org/rustc/target-tier-policy.html#tier-3-target-policy) requirement:

> A tier 3 target must have a designated developer or developers (the "target maintainers") on record to be CCed when issues arise regarding the target. (The mechanism to track and CC such developers may evolve over time.)

Ack. @sanchuanhehe will maintain the target; recorded on the
`riscv32-unknown-none-elf` platform-support page.

> Targets must use naming consistent with any existing targets; for instance, a target for the same CPU or OS as an existing Rust target should use the same name for that CPU or OS. Targets should normally use the same names and naming conventions as used elsewhere in the broader ecosystem beyond Rust (such as in other toolchains), unless they have a very good reason to diverge. Changing the name of a target can be highly disruptive, especially once the target reaches a higher tier, so getting the name right is important even for a tier 3 target.
>
> Target names should not introduce undue confusion or ambiguity unless absolutely necessary to maintain ecosystem compatibility. For example, if the name of the target makes people extremely likely to form incorrect beliefs about what it targets, the name should be changed or augmented to disambiguate it.
>
> If possible, use only letters, numbers, dashes and underscores for the name. Periods (.) are known to cause issues in Cargo.

Ack. The target is named `riscv32imfc-unknown-none-elf`, fitting the existing
`riscv32im{,a,c,fc,ac,afc}-unknown-none-elf` family: standard RISC-V ISA-extension
letters (`imfc`) and the `unknown-none-elf` triple shared by the other bare-metal
RISC-V targets. The name uses only letters, numbers and dashes.

> Tier 3 targets may have unusual requirements to build or use, but must not create legal issues or impose onerous legal terms for the Rust project or for Rust developers or users.
>
> The target must not introduce license incompatibilities.
>
> Anything added to the Rust repository must be under the standard Rust license (MIT OR Apache-2.0).
>
> The target must not cause the Rust tools or libraries built for any other host (even when supporting cross-compilation to the target) to depend on any new dependency less permissive than the Rust licensing policy.
>
> Compiling, linking, and emitting functional binaries, libraries, or other code for the target must not depend on proprietary (non-FOSS) libraries.

Ack. Everything added is under `MIT OR Apache-2.0`. The change is a purely
additive target spec plus docs and a test; it introduces no new dependency and no
proprietary component. Code generation uses the in-tree LLVM RISC-V backend only.

> Neither this policy nor any decisions made regarding targets shall create any binding agreement or estoppel by any party. If any member of an approving Rust team serves as one of the maintainers of a target, or has any legal or employment requirement (explicit or implicit) that might affect their decisions regarding a target, they must recuse themselves from any approval decisions regarding the target's tier status, though they may otherwise participate in discussions.

Ack.

> Tier 3 targets should attempt to implement as much of the standard libraries as possible and appropriate (core for most targets, alloc for targets that can support dynamic memory allocation, std for targets with an operating system or equivalent layer of system-provided functionality), but may leave some code unimplemented (either unavailable or stubbed out as appropriate), whether because the target makes it impossible to implement or challenging to implement. The authors of pull requests are not obligated to avoid calling any portions of the standard library on the basis of a tier 3 target not implementing those portions.

Ack. This is a bare-metal `no_std` target (`std: false`). `core` and `alloc`
build for it, the same as the sibling `riscv32imc` / `riscv32imafc` targets; `std`
is not applicable as there is no operating system layer.

> The target must provide documentation for the Rust community explaining how to build for the target, using cross-compilation if possible. If the target supports running binaries, or running tests (even if they do not pass), the documentation must explain how to run such binaries or tests for the target, using emulation if possible or dedicated hardware if necessary.

Ack. Documented on the shared `riscv32-unknown-none-elf` platform-support page
(cross-compiled, `rust-lld`, linker-script requirement). Like the other bare-metal
RISC-V targets, the Rust test suite cannot be run on it; it must be run in a
simulator or on hardware.

> Tier 3 targets must not impose burden on the authors of pull requests, or other developers in the community, to maintain the target. In particular, do not post comments (automated or manual) on a PR that derail or suggest a block on the PR based on a tier 3 target. Do not send automated messages or notifications (via any medium, including via @) to a PR author or others involved with a PR regarding a tier 3 target, unless they have opted into such messages.

Ack.

> Patches adding or updating tier 3 targets must not break any existing tier 2 or tier 1 target, and must not knowingly break another tier 3 target without approval of either the compiler team or the maintainers of the other tier 3 target. In particular, this may come up when working on closely related targets, such as variations of the same architecture with different features. Avoid introducing unconditional uses of features that another variation of the target may not have; use conditional compilation or runtime detection, as appropriate, to let each target run code supported by that target.

Ack. The change is additive only and touches no code shared with other targets;
`./x test tidy` and the `targets-elf` assembly test pass. No unconditional use of
any feature is introduced that would affect other RISC-V target variations.

> Tier 3 targets must be able to produce assembly using at least one of rustc's supported backends from any host target. (Having support in a fork of the backend is not sufficient, it must be upstream.)

Ack. Covered by the new `tests/assembly-llvm/targets/targets-elf.rs` revision,
which passes using the upstream LLVM backend.

> If a tier 3 target stops meeting these requirements [...] we may post a PR to remove it; any such PR will be CCed to the target maintainers [...] to check potential interest in improving the situation.

Ack.
2026-07-05 08:47:07 +02:00
Jonathan Brouwer c320e328a3 Rollup merge of #158021 - mati865:mingw-remove-workaround, r=marcoieni
Remove old MinGW workaround

Before https://github.com/mingw-w64/mingw-w64/commit/dbfdf802580c0d6b90b91995dab019f2a7787a8e mkstemp used by Binutils was not sufficiently collision resilient and that led to CI errors for us.

Our new baseline mingw-w64 toolchain's Binutils are built using mingw-w64 with the fix: https://github.com/niXman/mingw-builds/pull/682
So, we should be able to get rid of it.

Fixes https://github.com/rust-lang/rust/issues/108227
2026-07-05 08:47:06 +02:00
Jonathan Brouwer 988fe15cf8 Rollup merge of #158665 - theemathas:undel-dyn-compat-check, r=Kivooeo,lcnr
Revert "Remove redundant dyn-compatibility check."

This reverts commit 5fad8a6a23.

Fixes rust-lang/rust#158656

See https://github.com/rust-lang/rust/pull/158665#discussion_r3511365673 for explanation.
2026-07-05 08:47:05 +02:00
Jonathan Brouwer fa70b78d65 Rollup merge of #158658 - nikic:update-fix-evex-compress, r=cuviper
Update LLVM submodule

Backport of https://github.com/llvm/llvm-project/commit/f0fc9d0abf7024ceb5cb827b16f02c10e54fe0fd.

Fixes https://github.com/rust-lang/rust/issues/158622.
2026-07-05 08:47:05 +02:00
Jonathan Brouwer 3dad78a3e4 Rollup merge of #158627 - cuviper:option-iterator-flattening, r=nnethercote
Simplify option-iterator flattening in the compiler

In many cases where we are flattening `option::IntoIter<I>`, we can use
`Option::into_flat_iter()` instead for a simpler implementation. A few
other cases have more direct constructs available.
2026-07-05 08:47:04 +02:00
Jonathan Brouwer c9d4d4dff7 Rollup merge of #158606 - khyperia:yeet-aliasrelate, r=lcnr
use ProjectionPredicate instead of AliasRelate

part of https://github.com/rust-lang/rust/issues/155345

this PR is split into three commits:

- refactoring `super_combine_{tys,consts}`, should not change behavior at all, just reorganizing code
- convert to use ProjectionPredicate instead of AliasRelate in super_combine_tys and generalization (this is the important change for this PR)
- deleting the now-dead AliasRelate predicate

r? @lcnr
2026-07-05 08:47:04 +02:00
Jonathan Brouwer 9ef160f892 Rollup merge of #158494 - raushan728:issues/158423, r=mu001999
Improve E0277 diagnostics for conditionally implemented traits

Fixes rust-lang/rust#158423.

The diagnostic previously reported that a trait was "implemented" even when the matching impl could not apply because its where-clause requirements were not satisfied, which was misleading.

This change:

- reports that the trait is "conditionally implemented" when a matching impl is rejected due to unsatisfied where-clause requirements;
- highlights the unsatisfied requirement in the impl and includes the corresponding predicate in the diagnostic;
- preserves the existing diagnostic flow while making it clearer why the candidate impl was rejected.
2026-07-05 08:47:03 +02:00
Jonathan Brouwer b0cbd79a14 Rollup merge of #158100 - BorrowSanitizer:codegen-emit-retag-4, r=saethlin
Emit retags in codegen to support BorrowSanitizer (part 4)

Tracking issue: https://github.com/rust-lang/rust/issues/154760
[Zulip Thread](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Staging.20for.20emitting.20retags.20in.20codegen/with/593004012)

This is one of several PRs that add experimental support for emitting retags as function calls in codegen.

This PR emits our retag intrinsics based on the structure of a `RetagPlan`. The feature works end-to-end now! But, it has two limitations:

* We do not track interior mutable or pinned ranges precisely. This will come in the next PR, which should be the last one that we need to complete this feature (excluding documentation and compile tests).

* We recurse into `repr(simd)` types when building a `RetagPlan`, but we do not emit retags for their fields. We would need `BuilderMethods::insert_element`, which isn't available. I'm not sure what the best workaround would be for this.

Related: rust-lang/rust#157825, rust-lang/rust#156210, rust-lang/rust#156208

Cc: @RalfJung
r? @saethlin
2026-07-05 08:47:02 +02:00
bors ea088e0a3d Auto merge of #158691 - weihanglo:update-cargo, r=weihanglo
Update cargo submodule



13 commits in a335d47ff8036918d3d548dabd513dc0444096a9..f40cc7a13a8ebe3dd0a35b1e0e37a1e26c8bb0e5
2026-06-26 20:39:41 +0000 to 2026-07-01 18:57:21 +0000
- chore(deps): update rust crate gix to 0.85.0 (rust-lang/cargo#17159)
- Fixed `Compilation::deps_output` only taking the last dep (rust-lang/cargo#17164)
- chore(deps): update taiki-e/install-action action to v2.82.7 (rust-lang/cargo#17163)
- chore(deps): update rust crate rusqlite to 0.40.0 (rust-lang/cargo#17162)
- chore(deps): update rust crate itertools to 0.15.0 (rust-lang/cargo#17160)
- chore(deps): update compatible (rust-lang/cargo#17156)
- chore(deps): update crate-ci/typos action to v1.48.0 (rust-lang/cargo#17158)
- chore(deps): update alpine docker tag to v3.24 (rust-lang/cargo#17157)
- chore(deps): update actions/checkout action to v6.0.3 (rust-lang/cargo#17155)
- chore: upgrade to libssh2-sys@0.3.2 (rust-lang/cargo#17152)
- test(help): Don't hang on Mac with a custom man pager (rust-lang/cargo#17151)
- docs(lints): Add a false-positive example solution (rust-lang/cargo#17147)
- docs(lints): Reduce the superfluous whitespace by grouping bullet items (rust-lang/cargo#17146)

r? ghost
2026-07-05 00:24:14 +00:00
bors 96eb6d756b Auto merge of #158774 - jieyouxu:jieyouxu/ci/mirror, r=Mark-Simulacrum
Mirror kernel archives in `ci-mirrors` to not depend on currently unavailable kernel mirror sources



## Summary

(Tempoarily) closes rust-lang/rust#158718.
See [#t-infra > kernel.org is borked](https://rust-lang.zulipchat.com/#narrow/channel/242791-t-infra/topic/kernel.2Eorg.20is.20borked/with/608182062).

Currently rust-lang/rust CI is borked because:

1. `armhf-gnu` directly tries to download kernel v4.x artifacts from kernel.org mirror, and
2. certain `dist-*` jobs tries to download kernel v3.x and v4.x artifacts from kernel.org mirror indirectly via crosstools-ng ("CT-NG") [^1].

[^1]: Add v5.x but those are already recovered.

However, kernel.org mirror sync infra has an active incident (ref: https://status.linuxfoundation.org/incidents/3y1k8b4ky71t) where not all files are available. In particular, v3.x and v4.x kernel artifacts are not recovered yet as of time of writing (check <https://mirrors.edge.kernel.org/pub/linux/kernel/>).

### Mitigation

This PR tries to mitigate this by using our own mirrored kernel artifacts from `ci-mirrors` (see https://github.com/rust-lang/ci-mirrors/pull/41, https://github.com/rust-lang/ci-mirrors/pull/42, https://github.com/rust-lang/ci-mirrors/pull/43), such that `linux-$A.$B.$C.tar.gz` artifacts become available as search locations to CT-NG.

We carry a patch to CT-NG to use our own `ci-mirrors` artifact SHA256 checksums, the checksum mismatches are as far as we know due to compression setting differences (`ci-mirrors` source archives from <https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/snapshot/>).

## Notes

- `armhf-gnu` still has artifacts from third-party mirrors/sources (busybox, ubuntu-base-22.04.2). Not in scope of this PR.
- It looks like `3.*` kernel series are considered obselete by CT-NG, and need `CT_OBSOLETE=y` config.
- CT-NG checks for known-good kernel versions and checksums against the provided mirror.

### CT-NG known good versions

Re. latest kernel versions in each release versus what CT-NG 1.28.0 considers a known good version w/ checksum:

Kernel LTS release series | Last release in the series | CT-NG 1.28.0 known good kernel version w/ checksum
-- | -- | --
3.2.* | 3.2.102 | **3.2.101**
3.10.* | 3.10.108 | 3.10.108
4.4.* | 4.4.302 | 4.4.302
4.19.* | 4.19.325 | 4.19.325
4.20.* | 4.20.17 | 4.20.17
5.19.* | 5.19.17 | **5.19.16**

(**Bold** CT-NG known good version indicates not latest in release series.)

### `ci-mirrors` kernal tarball SHA256 checksums

Refer to https://github.com/rust-lang/ci-mirrors/blob/b474b4bb35108dab668907172c858854f209c809/files/rustc/kernel.toml:

| **Kernel Version** | **SHA256**                                                         |
| ------------------ | ------------------------------------------------------------------ |
| 3.2.101            | `93e8391e029f131d5ba4b7ad76cc34b12f2c2244059604042f2297c4bde093f7` |
| 3.10.108           | `b1711610cf3faf7194156dacdb98c63c1b7ffd02377269d7f75df63d823ccbba` |
| 4.4.302            | `a22ceab143d40f511203265e5a70d6cc5ec39163cd54fa281346d19176f64451` |
| 4.19.325           | `8753443636e475b506e08abd40059ec9b84904a115d206014f0c856dfe13a25e` |
| 4.20.17            | `313b7bebb46084efbfcaf75f4ea6faf2e14c8cbc1711fcba483dc0a036c9acc1` |
| 5.19.16            | `bbf0ead65559250e0784c13d4f9716b7f917a1d3a4e00f671f3994cc6990bb02` |

---

try-job: armhf-gnu
try-job: dist-armhf-linux
try-job: dist-arm-linux-gnueabi
try-job: dist-powerpc64le-linux-musl
try-job: dist-loongarch64-musl
try-job: dist-riscv64-linux
try-job: dist-powerpc64le-linux-gnu
try-job: dist-powerpc64-linux-musl
try-job: dist-armv7-linux
try-job: dist-powerpc-linux
try-job: dist-loongarch64-linux
try-job: dist-s390x-linux
try-job: dist-i586-gnu-i586-i686-musl
try-job: dist-powerpc64-linux-gnu
2026-07-04 21:09:24 +00:00
Jieyou Xu 071882ee22 ci: verify digest with SHA256 not SHA512 2026-07-05 04:02:02 +08:00
Jieyou Xu 925d35b377 ci: use known-good ci-mirrors SHA256 CT-NG patch 2026-07-05 04:02:02 +08:00
Jieyou Xu b6d0d6f6ff ci: use 5.19.16 kernel specifically mirrored by us 2026-07-05 02:57:12 +08:00
Jieyou Xu 581a2a3041 ci: use 4.20.17 kernel specifically mirrored by us 2026-07-05 02:57:06 +08:00
Jieyou Xu 8c3bb24507 ci: use 4.19.325 kernel specifically mirrored by us 2026-07-05 02:57:06 +08:00
Jieyou Xu 48a5a1ad08 ci: use 4.4.302 kernel specifically mirrored by us 2026-07-05 02:57:05 +08:00
Jieyou Xu d55cc42a8c ci: use 3.10.108 kernel specifically mirrored by us 2026-07-05 02:57:05 +08:00
Jieyou Xu 08085160a0 ci: use 3.2.101 kernel specifically mirrored by us 2026-07-05 02:57:05 +08:00
Jieyou Xu 2247612fa7 ci: switch armhf-gnu to kernel 4.14.336 mirrored by us 2026-07-04 21:53:13 +08:00
Jakub Beránek 7c1d8b8204 Clarify that debuginfo compression only works on Linux 2026-07-03 11:05:13 +02:00
Jakub Beránek 5c5b060a16 Pass -Wl based on whether we are using a host linker 2026-07-03 11:05:13 +02:00
Ian McCormack c2687651c8 Unconditionally jump to the join block when retagging variants. 2026-07-02 10:32:14 -04:00
Ian McCormack 471f97d6cc Emit retags without precise information on pinning and interior mutability. 2026-07-02 10:32:06 -04:00
Weihang Lo 2f0d5b8fc2 Update cargo submodule 2026-07-02 09:15:43 -04:00
Guillaume Gomez 6bae483ebc Cleanup attribute docs and add links to other mentioned attributes 2026-07-02 14:59:11 +02:00
khyperia c77583edee instantiate_normalizes_to_as_rigid 2026-07-02 12:30:27 +02:00
khyperia 1f5a90578f VisibleForLeakCheck::No in evaluate_root_goal_for_proof_tree 2026-07-02 12:30:27 +02:00
khyperia 9ccafdc0f8 the .eq() in instantiate_normalizes_to_term may fail 2026-07-02 12:30:24 +02:00
Nicholas Nethercote 1346c268d7 Eliminate make_MacEager!
The code is shorter and easier to read with it removed.
2026-07-02 19:50:49 +10:00
Nicholas Nethercote 2740f6c9ee Remove unused MacEager fields
These removed fields are never set, and thus are always `None`. Once
they are removed, several `make_*` methods can be simplified, or
entirely removed (giving the default `MacResult` behaviour).

Note also that `self.impl_items` was being returned for both
`make_impl_items` and `make_trait_impl_items`, which clearly wasn't
correct.
2026-07-02 19:34:16 +10:00