Commit Graph

322396 Commits

Author SHA1 Message Date
Folkert de Vries 8e2069e76c run some aarch64 tests with miri on CI 2026-04-06 19:39:21 +02:00
Folkert de Vries 4b52401221 run test_vld3q tests with miri on CI 2026-04-06 19:39:20 +02:00
Folkert de Vries cb0d495dae support roundtrip of vst3q 2026-04-06 19:39:20 +02:00
Folkert de Vries 8f3850c74c check that store/load rountrip initializes all bytes 2026-04-06 19:39:20 +02:00
Folkert de Vries ebfdd898ca Merge pull request #2067 from rust-lang/rustc-pull
Rustc pull update
2026-04-06 17:22:54 +00:00
Folkert de Vries 598640b101 disable hexagon tests for now 2026-04-06 19:13:42 +02:00
Jakub Beránek 1276db5745 Fix rustc-pull CI workflow 2026-04-01 11:23:04 +02:00
The rustc-josh-sync Cronjob Bot 79e3df625d Merge ref 'e4fdb554ad2c' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: rust-lang/rust@e4fdb554ad
Filtered ref: rust-lang/stdarch@ae05da8bd6
Upstream diff: https://github.com/rust-lang/rust/compare/eda4fc7733ee89e484d7120cafbd80dcb2fce66e...e4fdb554ad2c0270473181438e338c42b5b30b0c

This merge was created using https://github.com/rust-lang/josh-sync.
2026-03-31 15:50:44 +00:00
The rustc-josh-sync Cronjob Bot 8e815f9ae1 Prepare for merging from rust-lang/rust
This updates the rust-version file to e4fdb554ad.
2026-03-31 15:48:28 +00:00
bors e4fdb554ad Auto merge of #154633 - tgross35:rollup-Yvmg0Vs, r=tgross35
Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#154582 (miri subtree update)
 - rust-lang/rust#142659 (compiler-builtins: Clean up features)
 - rust-lang/rust#153574 (Avoid ICE when param-env normalization leaves unresolved inference variables)
 - rust-lang/rust#153648 (Fix EII function aliases eliminated by LTO)
 - rust-lang/rust#153790 (Fix regression when dealing with generics/values with unresolved inference)
 - rust-lang/rust#154551 (Skip suggestions pointing to macro def for assert_eq)
 - rust-lang/rust#154574 (delete several `ui/consts` tests)
 - rust-lang/rust#154577 (Update `mir-opt` 64-bit panic-abort tests for `Alignment` rename)
 - rust-lang/rust#154579 (remove debug requirement from hooks)
2026-03-31 09:25:52 +00:00
Trevor Gross 4485c39fe8 Rollup merge of #154579 - jdonszelmann:remove-debug-hook, r=lcnr
remove debug requirement from hooks

This change seems useful regardless. It came out of the eager normalize in generalize PR.

r? @lcnr
2026-03-31 05:08:26 -04:00
Trevor Gross 44faca9d94 Rollup merge of #154577 - ferrocene:jyn/bless-mir-opt, r=jieyouxu
Update `mir-opt` 64-bit panic-abort tests for `Alignment` rename

These seem to have been missed when the PR originally merged.

cc https://github.com/rust-lang/rust/pull/154004, @GrigorenkoPV
2026-03-31 05:08:26 -04:00
Trevor Gross 66c7f9d9af Rollup merge of #154574 - cyrgani:less-const-tests, r=Kivooeo
delete several `ui/consts` tests

* `tests/ui/consts/const.rs`: meaningless
* `tests/ui/consts/const-bound.rs`: has nothing to do with const bounds or const at all (anymore?)
* `tests/ui/consts/const-enum-tuplestruct2.rs`, `tests/ui/consts/const-enum-tuple2.rs`, `tests/ui/consts/const-enum-tuple.rs`: duplicates of `tests/ui/consts/const-enum-tuplestruct.rs`
r? @Kivooeo
2026-03-31 05:08:25 -04:00
Trevor Gross 472c531d7a Rollup merge of #154551 - chenyukang:yukang-fix-146204-assert-ne-suggestion-span, r=JohnTitor
Skip suggestions pointing to macro def for assert_eq

Fixes rust-lang/rust#146204

It's better to suggest:
```console
help: consider borrowing here
 --> src/main.rs:3:16
  |
 3|      assert_ne!(&buf, b"----");
  |                 +
```
but i don't want to give a too heuristic but not general enough fix, let suppress them.
2026-03-31 05:08:25 -04:00
Trevor Gross 68d2666fc2 Rollup merge of #153790 - zedddie:transmutation-regression, r=jdonszelmann
Fix regression when dealing with generics/values with unresolved inference

Follow up for rust-lang/rust#151703, fixing regression caused in rollup rust-lang/rust#152825

Forgot to handle generics & unresolved inference variables (as in `get_safe_transmute_error_and_reason`) in my previous PR. This followup checks for them before trying to normalize.

I am not completely sure its right approach to have this check cloned but as `select_transmute_obligation_for_reporting` fn just chooses obligation and doesn't actually return an error, this check shouldn't be removed from `get_safe_transmute_error_and_reasnon`. If there is any better solution, let me kmow.

Fixes: rust-lang/rust#153755

r? @jdonszelmann
2026-03-31 05:08:24 -04:00
Trevor Gross 4b2378286c Rollup merge of #153648 - AsakuraMizu:fix-eii-lto-alias, r=jdonszelmann,bjorn3
Fix EII function aliases eliminated by LTO

Add EII function aliases to `llvm.compiler.used` so that LLVM's LTO passes do not eliminate them.

Fixes rust-lang/rust#153645

Tracking issue: https://github.com/rust-lang/rust/issues/125418
2026-03-31 05:08:24 -04:00
Trevor Gross 3479a1d553 Rollup merge of #153574 - TaKO8Ki:self-referential-param-env-normalization-ice, r=lcnr
Avoid ICE when param-env normalization leaves unresolved inference variables

Fixes rust-lang/rust#153354

Because the impl is already ill-formed, those variables are not fully constrained, so zfully_resolve` fails. We previously treated that as an immediate compiler bug with `span_bug!`, which caused an ICE on invalid input.
2026-03-31 05:08:23 -04:00
Trevor Gross e1d917a035 Rollup merge of #142659 - tgross35:builtins-features, r=Amanieu
compiler-builtins: Clean up features

Remove the `compiler-builtins` feature from default because it prevents
testing via the default `cargo test` command. It made more sense as a
default when `compiler-builtins` was a dependency that some crates added
via crates.io, but is no longer needed.

The `rustc-dep-of-std` feature is also removed since it doesn't do
anything beyond what the `compiler-builtins` feature already does.
2026-03-31 05:08:22 -04:00
Trevor Gross 8e4649022d Rollup merge of #154582 - RalfJung:miri, r=RalfJung
miri subtree update

Subtree update of `miri` to https://github.com/rust-lang/miri/commit/76621481ee89df1ba53dc32da539c0f31df202ef.

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

r? @ghost
2026-03-31 05:08:22 -04:00
bors 37cfa179be Auto merge of #154053 - khyperia:generalize-unevaluated, r=BoxyUwU
Properly generalize unevaluated consts



- fixes https://github.com/rust-lang/rust/issues/153831
- fixes a `// FIXME(ogca)` (I am unaware of an issue for this) added in https://github.com/rust-lang/rust/pull/150823

r? @BoxyUwU
2026-03-31 05:35:09 +00:00
bors 08cd08fbef Auto merge of #154482 - weihanglo:update-cargo, r=weihanglo
Update cargo submodule



11 commits in e84cb639edfea2c42efd563b72a9be0cc5de6523..888f675344eb1cf2308fd53183e667bdd2c58e51
2026-03-21 01:27:07 +0000 to 2026-03-30 16:59:25 +0000
- chore: bump to curl-sys@0.4.87 (rust-lang/cargo#16808)
- fix(resolver): Better match rustc in error styling (rust-lang/cargo#16795)
- missing -Zjson-target-spec error: mention that this is a cargo flag (rust-lang/cargo#16793)
- Update changelog for 1.94.1 (rust-lang/cargo#16789)
- test(build): Make it easier to review `build.warnings` behavior (rust-lang/cargo#16788)
- test(build): Cover more behavior of `build.warnings` (rust-lang/cargo#16785)
- chore(deps): bump curl-sys from 0.4.83 to 0.4.86 (rust-lang/cargo#16786)
- Warn when installing with a non-default toolchain (rust-lang/cargo#16131)
- feat(cli): Add support for completing `--config` argument values with `native-completions` (rust-lang/cargo#16249)
- feat(cli): complete `--config` and `--color` before command (rust-lang/cargo#16780)
- chore(deps): bump rustls-webpki from 0.103.9 to 0.103.10 (rust-lang/cargo#16778)
2026-03-31 01:13:44 +00:00
Trevor Gross 59fe28d0ff compiler-builtins: Clean up features
Remove the `compiler-builtins` feature from default because it prevents
testing via the default `cargo test` command. It made more sense as a
default when `compiler-builtins` was a dependency that some crates added
via crates.io, but is no longer needed.

The `rustc-dep-of-std` feature is also removed since it doesn't do
anything beyond what the `compiler-builtins` feature already does.
2026-03-30 18:45:13 -04:00
Weihang Lo c575b7fe62 Update cargo submodule 2026-03-30 13:49:43 -04:00
yukang 6518de37d4 Skip suggestions pointing to extern macro def for assert_eq 2026-03-30 22:58:03 +08:00
Takayuki Maeda d29c489599 add self-referential param-env normalization regression
avoid ICE on invalid param-env normalization

remove 120033 crash test

fix comments

use rustc_no_implicit_bounds

set #![allow(incomplete_features)]
2026-03-30 22:50:31 +09:00
khyperia 75eeece98c Properly generalize unevaluated consts 2026-03-30 15:47:49 +02:00
Ralf Jung 79d00dbf25 update lockfile 2026-03-30 14:48:37 +02:00
Ralf Jung 38653775c3 Merge pull request #4912 from folkertdev/aarch64-pairwise-add
aarch64: add shims for pairwise widening/wrapping addition
2026-03-30 12:08:11 +00:00
Folkert de Vries 02611d8d3f aarch64: add shims for pairwise widening/wrapping addition 2026-03-30 13:45:04 +02:00
Jynn Nelson e61842d378 Update mir-opt 64-bit panic-abort tests for Alignment rename
These seem to have been missed when the PR originally merged.
2026-03-30 10:56:57 +00:00
bors cf7da0b727 Auto merge of #154573 - jhpratt:rollup-ABgmddY, r=jhpratt
Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#154548 (Add regression test for TransmuteFrom ICE with min_generic_const_args)
 - rust-lang/rust#154563 (Point at binop lhs and rhs when expression is multiline)
 - rust-lang/rust#154564 (Tweak wording of E0275 WF errors)
 - rust-lang/rust#154566 (loongarch: use "_mcount" as the default mcount symbol)
2026-03-30 10:54:25 +00:00
cyrgani bf42a53bf7 delete several ui/consts tests 2026-03-30 09:15:22 +00:00
Jacob Pratt 89eb3298db Rollup merge of #154566 - heiher:loong-mcount-sym, r=chenyukang
loongarch: use "_mcount" as the default mcount symbol

Set the `mcount` field to "_mcount" for all LoongArch targets to match Clang/GCC behavior [1]. This fixes linking failures when using `-Z instrument-mcount`, where the runtime expects "_mcount" instead of "mcount".

[1] https://github.com/llvm/llvm-project/blob/main/clang/lib/Basic/Targets/LoongArch.h#L60
2026-03-30 05:13:18 -04:00
Jacob Pratt 7275f7e2e3 Rollup merge of #154564 - estebank:tweak-wf-errors, r=Kivooeo
Tweak wording of E0275 WF errors

Modify the main error message to read better:

```
error[E0275]: overflow evaluating whether `&'a mut Bar` is well-formed
```
2026-03-30 05:13:18 -04:00
Jacob Pratt a2cc7a9f0a Rollup merge of #154563 - estebank:multiline-binop, r=TaKO8Ki
Point at binop lhs and rhs when expression is multiline

```
error[E0277]: cannot add `()` to `u32`
  --> $DIR/multiline-span-simple.rs:13:18
   |
LL |       foo(1 as u32 +
   |           -------- ^ no implementation for `u32 + ()`
LL |
LL | /         bar(x,
LL | |
LL | |             y),
   | |______________-
```
2026-03-30 05:13:17 -04:00
Jacob Pratt e97324a04f Rollup merge of #154548 - jeanibarz:fix/add-test-150457, r=jieyouxu
Add regression test for TransmuteFrom ICE with min_generic_const_args

Regression test for rust-lang/rust#150457.

The wfcheck ICE with TransmuteFrom + min_generic_const_args was fixed by rust-lang/rust#150707 but didn't get a test.

Closes rust-lang/rust#150457
2026-03-30 05:13:17 -04:00
Jana Dönszelmann 29710ca270 remove debug requirement from hooks 2026-03-30 10:06:32 +02:00
bors 4cf5f95802 Auto merge of #154572 - lnicola:sync-from-ra, r=lnicola
`rust-analyzer` subtree update

Subtree update of `rust-analyzer` to https://github.com/rust-lang/rust-analyzer/commit/f1297b21119565c626320c1ffc248965fffb2527.

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

r? @ghost
2026-03-30 07:41:45 +00:00
Ralf Jung 8f3bb2ef0a Merge pull request #4930 from rust-lang/rustup-2026-03-30
Automatic Rustup
2026-03-30 06:40:37 +00:00
The Miri Cronjob Bot 81d9a51e55 Merge ref '116458d0a5ae' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: rust-lang/rust@116458d0a5
Filtered ref: rust-lang/miri@a87c06e1a6
Upstream diff: https://github.com/rust-lang/rust/compare/148adf223edb0444eb1f99753919dd2080c2a534...116458d0a5ae01cd517cabd2d1aee7f5457018ab

This merge was created using https://github.com/rust-lang/josh-sync.
2026-03-30 05:46:18 +00:00
The Miri Cronjob Bot 77199806b7 Prepare for merging from rust-lang/rust
This updates the rust-version file to 116458d0a5.
2026-03-30 05:38:07 +00:00
bors 116458d0a5 Auto merge of #154511 - nikic:revert-fastisel, r=dianqk
[perf] Revert FastISel patch

This caused a significant compile-time regression for debug builds.

There is another change (https://github.com/llvm/llvm-project/pull/186723) that mitigates that regression, but not fully. Revert it for now.
2026-03-30 02:02:59 +00:00
WANG Rui 6e984cd4bf loongarch: use "_mcount" as the default mcount symbol
Set the `mcount` field to "_mcount" for all LoongArch targets to match
Clang/GCC behavior [1]. This fixes linking failures when using
`-Z instrument-mcount`, where the runtime expects "_mcount" instead of
"mcount".

[1] https://github.com/llvm/llvm-project/blob/main/clang/lib/Basic/Targets/LoongArch.h#L60
2026-03-30 07:53:20 +08:00
bors 80ad55752e Auto merge of #154559 - JonathanBrouwer:rollup-Iut0qjN, r=JonathanBrouwer
Rollup of 11 pull requests

Successful merges:

 - rust-lang/rust#154074 (don't drop arguments' temporaries in `dbg!`)
 - rust-lang/rust#154328 (rustdoc: add missing {os,target,target_env} values for cfg pretty printer)
 - rust-lang/rust#154540 (Fix invalid type suggestion for item nested in function)
 - rust-lang/rust#154549 (Add regression test for recursive lazy type alias normalization ICE)
 - rust-lang/rust#153373 (Fix LegacyKeyValueFormat report from docker build: powerpc)
 - rust-lang/rust#154322 (feat: reimplement `hash_map!` macro)
 - rust-lang/rust#154416 (Add `IoSplit` diagnostic item for `std::io::Split`)
 - rust-lang/rust#154486 (std_detect on AArch64 Darwin: Detect FEAT_SVE_B16B16)
 - rust-lang/rust#154508 (Fix ambiguous parsing in bootstrap.py)
 - rust-lang/rust#154518 (Panic in Hermit clock_gettime)
 - rust-lang/rust#154530 (update zulip link in `std` documentation)
2026-03-29 22:49:44 +00:00
Esteban Küber 0740609ea3 Point at binop lhs and rhs when expression is multiline
```
error[E0277]: cannot add `()` to `u32`
  --> $DIR/multiline-span-simple.rs:13:18
   |
LL |       foo(1 as u32 +
   |           -------- ^ no implementation for `u32 + ()`
LL |
LL | /         bar(x,
LL | |
LL | |             y),
   | |______________-
```
2026-03-29 21:07:54 +00:00
Jonathan Brouwer de649f4462 Rollup merge of #154530 - fee1-dead-contrib:push-syplyyvkpsol, r=Noratrieb
update zulip link in `std` documentation

#docs doesn't seem to exist anymore, so point people to `t-libs`. Also include direct link to topic since Zulip is world-viewable now.
2026-03-29 21:39:31 +02:00
Jonathan Brouwer 95acbdfd8f Rollup merge of #154518 - stepancheg:hermit-panic, r=Mark-Simulacrum
Panic in Hermit clock_gettime

Follow-up to rust-lang/rust#154234.

r? @Mark-Simulacrum
2026-03-29 21:39:30 +02:00
Jonathan Brouwer 0d7708d25f Rollup merge of #154508 - Mark-Simulacrum:fix-ambiguous-parse, r=jieyouxu
Fix ambiguous parsing in bootstrap.py

Noticed this while trying to produce rustdoc-json for std and saw JSON output from the bootstrap.py build of bootstrap's Rust code. This is technically a breaking change, but I think the fix should be simple and arguably an improvement in future compatibility if/when the flag set changes.
2026-03-29 21:39:30 +02:00
Jonathan Brouwer ab05593ad9 Rollup merge of #154486 - pthariensflame:patch-1, r=Mark-Simulacrum
std_detect on AArch64 Darwin: Detect FEAT_SVE_B16B16

This is now exposed via `sysctl` as of macOS "Tahoe" 26.4 (or possibly earlier).
2026-03-29 21:39:29 +02:00
Jonathan Brouwer 46dcf270c2 Rollup merge of #154416 - vitkyrka:split-diag, r=Noratrieb
Add `IoSplit` diagnostic item for `std::io::Split`

Similar to the existing `IoLines` item.  It will be used in Clippy to detect uses of `Split` leading to infinite loops similar to the existing lint for `Lines`.
2026-03-29 21:39:29 +02:00