Commit Graph

315766 Commits

Author SHA1 Message Date
bors e408947bfd Auto merge of #154343 - arlosi:update-stable-cargo, r=Mark-Simulacrum
Cargo stable backports

1 commits in 292f395c297d4f99171325b0842ac4ea4ff3b386..29ea6fb6a5db279426f4cc4e17aa385f05a0cfbc
2026-03-21 06:42:37 -0500 to 2026-03-24 17:37:48 -0400
- [stable 1.94] Downgrade curl-sys to 0.4.83 (https://github.com/rust-lang/cargo/pull/16787)

Update release notes to mention the Cargo fix and fix broken link.
1.94.1
2026-03-25 01:22:28 +00:00
Arlo Siemsen 959f488642 Update release notes with Cargo changes 2026-03-24 18:13:02 -05:00
Arlo Siemsen 37f3d1acdc Fix broken links in RELEASES.md 2026-03-24 18:09:54 -05:00
Arlo Siemsen 8c692f2da1 [stable 1.94] Update cargo submodule
1 commits in 292f395c297d4f99171325b0842ac4ea4ff3b386..29ea6fb6a5db279426f4cc4e17aa385f05a0cfbc
2026-03-21 06:42:37 -0500 to 2026-03-24 17:37:48 -0400
- [stable 1.94] Downgrade curl-sys to 0.4.83 (rust-lang/cargo#16787)
2026-03-24 17:54:25 -05:00
bors 409dedce21 Auto merge of #154211 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
[stable] 1.94.1 release


This backports:

* [STABLE] library: wasm32-wasip1-threads has functional pthreads rust-lang/rust#153634
* Move freeze_* methods to OpenOptionsExt2 rust-lang/rust#153491
* [Clippy] Fix ICE in match_same_arms rust-lang/rust-clippy#16685

Cargo:

* [stable 1.94] Fix symlink_and_directory when running in a long target dir name (rust-lang/cargo#16777)
* Fix symlink_and_directory when running in a long target dir name (rust-lang/cargo#16775)
* [stable 1.94] Update tar to 0.4.45 (rust-lang/cargo#16769)
* test: Remove unused docker ip_address (rust-lang/cargo#16636)
* Increase cache_lock test timeout (rust-lang/cargo#16545)
* chore: Updated compiler errors for Rust 1.93 (rust-lang/cargo#16543)
* test(build-std): Update error message (rust-lang/cargo#16658)
* fix: `--remap-path-scope` stabilized in 1.95-nightly (rust-lang/cargo#16536)
* fix(script): surpress `unused_features` lint for embedded (rust-lang/cargo#16714)
* test(git): Mark a test as non-deterministic (rust-lang/cargo#16706)
* test(replace): Mark a test as non-deterministic (rust-lang/cargo#16700)
2026-03-22 21:19:42 +00:00
Mark Rousskov ff8efbd70d Add release notes for 1.94.1 2026-03-22 08:24:51 -04:00
Mark Rousskov 96a4ac8909 Backport rust-lang/rust-clippy#16685
This applies the patch for that PR, fixing an ICE in match_same_arms.
2026-03-22 08:13:23 -04:00
Mark Rousskov 0a29b263d0 Cargo stable backports
```
$ git log --oneline 85eff7c80277b57f78b11e28d14154ab12fcf643..292f395c297d4f99171325b0842ac4ea4ff3b386
292f395c2 (HEAD) [stable 1.94] Fix symlink_and_directory when running in a long target dir name (#16777)
d00475981 Fix symlink_and_directory when running in a long target dir name (#16775)
ce98781f7 [stable 1.94] Update tar to 0.4.45 (#16769)
fec7f9297 Update tar to 0.4.45
5e256e377 Add a test for a tar file with a symlink and directory of the same name
1ed92053d test: Remove unused docker ip_address (#16636)
d7a2a0307 Increase cache_lock test timeout (#16545)
95d93fb89 Don't check the specific build-std output
dfbe729f6 chore: Updated compiler errors for Rust 1.93 (#16543)
cb03b21f6 Update cargo-semver-checks to 0.47.0
f7777c4f9 test(build-std): Update error message (#16658)
a56abe18a Disable custom target JSON spec test
634668d49 fix: `--remap-path-scope` stabilized in 1.95-nightly (#16536)
d428eaa44 fix(script): surpress `unused_features` lint for embedded (#16714)
e7b27c7f9 test(git): Mark a test as non-deterministic (#16706)
38922ca44 test(replace): Mark a test as non-deterministic (#16700)
```
2026-03-22 08:08:33 -04:00
Chris Denton 4f1e85d875 Move freeze_* methods to OpenOptionsExt2 2026-03-22 08:04:14 -04:00
Jieyou Xu 637a138ab4 library: wasm32-wasip1-threads has functional pthreads
Minimal backport-suitable fix to avoid returning `UNSUPPORTED_PLATFORM`
for `wasm32-wasip1-threads` which has a working pthreads implementation
via `emnapi`.

The stable regression was reported in
<https://github.com/rust-lang/rust/issues/153475>.
2026-03-22 08:03:07 -04:00
Mark Rousskov 6fd8bb9422 Stable 1.94.1 release 2026-03-22 08:02:09 -04:00
bors 4a4ef493e3 Auto merge of #153313 - cuviper:stable-next, r=cuviper
[stable] prepare Rust 1.94.0

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

- Sync relnotes for 1.94.0
- Bump to stable release

r? cuviper
1.94.0
2026-03-02 23:18:25 +00:00
Josh Stone b8eece98d2 Bump to stable release 2026-03-02 14:52:52 -08:00
Josh Stone f7370c7fa3 Sync relnotes for 1.94.0
This copies every change from `main` and rust-lang/rust#153221.
2026-03-02 14:50:00 -08:00
bors ec6e988377 Auto merge of #153150 - cuviper:beta-next, r=cuviper
[beta] backports

- rustdoc: Fix ICE when deprecated note is not resolved on the correct `DefId` rust-lang/rust#151255

r? cuviper
2026-02-26 23:14:10 +00:00
Guillaume Gomez ade4c304da Add regression test for ICE when deprecated note is not resolved on the correct DefId
(cherry picked from commit 1faaa76961)
2026-02-24 15:19:53 -08:00
Guillaume Gomez aed7cdd0ca rustdoc: Fix ICE when deprecated note is not resolved on the correct DefId
(cherry picked from commit b3a5f53e8f)
2026-02-24 15:19:53 -08:00
bors 31a40f5c87 Auto merge of #152875 - cuviper:beta-next, r=cuviper
[beta] backports

- Consider captures to be used by closures that unwind rust-lang/rust#152103
- Fix feature gating for new `try bikeshed` expressions rust-lang/rust#152519
- reject inline const patterns pre-expansion rust-lang/rust#152548
- layout_of unexpected rigid alias delayed bug rust-lang/rust#152575
- resolve: Disable an assert that no longer holds rust-lang/rust#152711

r? cuviper
2026-02-20 19:40:41 +00:00
Vadim Petrochenkov 675afc4604 resolve: Disable an assert that no longer holds
(cherry picked from commit b541f1b198)
2026-02-19 16:00:29 -08:00
lcnr fe9b522a7b ICE to delayed bug
(cherry picked from commit b3d9fbc172)
2026-02-19 16:00:25 -08:00
lcnr 2e724d4f36 add regression test
(cherry picked from commit b4f38c1da4)
2026-02-19 16:00:25 -08:00
dianne 54c77b83fe reject inline const patterns pre-expansion
(cherry picked from commit 60f802fe11)
2026-02-19 16:00:16 -08:00
Scott McMurray 471f7eeb8e Fix feature gating for new try bikeshed expressions
(cherry picked from commit 6afebcc4dd)
2026-02-19 16:00:11 -08:00
Alan Egerton 02dbeadb42 Consider captures to be used by closures that unwind
Assignments to a captured variable within a diverging closure should not
be considered unused if the divergence is caught.

This patch considers such assignments/captures to be used by diverging
closures irrespective of whether the divergence is caught, but better a
false negative unused lint than a false positive one (the latter having
caused a stable-to-stable regression).

(cherry picked from commit 58292e2a53)
2026-02-19 16:00:07 -08:00
bors 172dc09412 Auto merge of #152721 - ehuss:beta-revert-target-spec, r=jackh726
[beta] Revert destabilise target-spec-json

This reverts https://github.com/rust-lang/rust/pull/150151 in order to deal with https://github.com/rust-lang/rust/issues/151729 where the destabilization caused a problem with building rustc itself with JSON target specs. There's a fix at https://github.com/rust-lang/rust/pull/152677, but we would prefer to not backport that, and instead give ourselves more time to work out the kinks. Also, the destabilization was incomplete, and the rest of the changes are in 1.95 (https://github.com/rust-lang/rust/pull/151534 and https://github.com/rust-lang/cargo/pull/16557), so it would be nice to keep all the changes together in one release.

This reverts commit a89683dd95, reversing changes made to 2f1bd3f378.
2026-02-18 17:12:50 +00:00
Eric Huss 6de57ea1ec [beta] Revert destabilise target-spec-json
This reverts https://github.com/rust-lang/rust/pull/150151 in order to
deal with https://github.com/rust-lang/rust/issues/151729 where the
destabilization caused a problem with building rustc itself with JSON
target specs. There's a fix at
https://github.com/rust-lang/rust/pull/152677, but we would prefer to
not backport that, and instead give ourselves more time to work out the
kinks. Also, the destabilization was incomplete, and the rest of the
changes are in 1.95 (https://github.com/rust-lang/rust/pull/151534 and
https://github.com/rust-lang/cargo/pull/16557), so it would be nice to
keep all the changes together in one release.

This reverts commit a89683dd95, reversing
changes made to 2f1bd3f378.
2026-02-16 09:07:31 -08:00
bors 2e10913d41 Auto merge of #152187 - cuviper:beta-next, r=cuviper
[beta] backports, plus stable versions in stdarch

- Replace `stdarch` version placeholders with 1.94
- Parse ident with allowing recovery when trying to diagnose rust-lang/rust#151249
- Revert enabling `outline-atomics` on various platforms rust-lang/rust#151896
- Revert doc attribute parsing errors to future warnings rust-lang/rust#151952
- Remove the 4 failing tests from rustdoc-gui rust-lang/rust#152194
- Remove rustdoc GUI flaky test rust-lang/rust#152116
- Align `ArrayWindows` trait impls with `Windows` rust-lang/rust#151613
- Fix suppression of `unused_assignment` in binding of `unused_variable` rust-lang/rust#151556
- layout: handle rigid aliases without params rust-lang/rust#151814
- Fix missing unused_variables lint when using a match guard rust-lang/rust#151990
- Partially revert "resolve: Update `NameBindingData::vis` in place" rust-lang/rust#152498
- [BETA]: parse array lengths without stripping const blocks rust-lang/rust#152237

r? cuviper
2026-02-12 23:54:59 +00:00
Boxy 9cc698e8d6 parse array lengths without mgca shenanigans
(cherry picked from commit 01703e30c0)
2026-02-12 09:07:19 -08:00
Vadim Petrochenkov a096799b4a Partially revert "resolve: Update NameBindingData::vis in place"
(cherry picked from commit 324267ccaa)
2026-02-12 09:07:10 -08:00
Vadim Petrochenkov bcfdf1bf97 Add tests for issues 152004, 151124 and 152347
(cherry picked from commit 0cd0840243)
2026-02-12 09:07:10 -08:00
Alan Egerton 1087b41a83 Fix missing unused_variables lint when using a match guard
Within a binding pattern match guard, only real reads of a bound local
impact its liveness analysis - not the fake read that is injected.

(cherry picked from commit 5aba6b1635)
2026-02-12 09:06:20 -08:00
lcnr 8ac1f9d27d fix rustdoc test
(cherry picked from commit 337abba988)
2026-02-12 09:06:14 -08:00
lcnr 25c0e0569c prevent incorrect layout error
aliases may be rigid even if they don't reference params. If the alias isn't well-formed, trying to normalize it as part of the input should have already failed

(cherry picked from commit 39a532445a)
2026-02-12 09:06:14 -08:00
lcnr 4dbbfa3087 add regression test
(cherry picked from commit d4454e59d3)
2026-02-12 09:06:14 -08:00
Alan Egerton 01268919a5 Fix suppression of unused_assignment in binding of unused_variable
Unused assignments to an unused variable should trigger only the
`unused_variables` lint and not also the `unused_assignments` lint.
This was previously implemented by checking whether the span of the
assignee was within the span of the binding pattern, however that failed
to capture situations was imported from elsewhere (eg from the input
tokenstream of a proc-macro that generates the binding pattern).

By comparing the span of the assignee to those of the variable
introductions instead, a reported stable-to-stable regression is
resolved.

This fix also impacted some other preexisting tests, which had
(undesirably) been triggering both the `unused_variables` and
`unused_assignments` lints on the same initializing assignment; those
tests have therefore now been updated to expect only the former lint.

(cherry picked from commit 22b3f59882)
2026-02-12 09:06:11 -08:00
Josh Stone e1dd1bb6cb impl TrustedRandomAccess for ArrayWindows
(cherry picked from commit 129d552d3f)
2026-02-09 16:30:51 -08:00
Josh Stone 8011d42521 impl TrustedLen for ArrayWindows
(cherry picked from commit 8f7d556c75)
2026-02-09 16:30:51 -08:00
Josh Stone 622cdb3575 impl FusedIterator for ArrayWindows
(cherry picked from commit 08cd2ac33d)
2026-02-09 16:30:51 -08:00
Josh Stone 90e99bdd32 Manually impl Clone for ArrayWindows
This implementation doesn't need the derived `T: Clone`.

(cherry picked from commit 90521553e6)
2026-02-09 16:30:51 -08:00
Josh Stone f5ccb92483 Remove derive(Copy) on ArrayWindows
The derived `T: Copy` constraint is not appropriate for an iterator by
reference, but we generally do not want `Copy` on iterators anyway.

(cherry picked from commit 2bae85ec52)
2026-02-09 16:30:51 -08:00
Guillaume Gomez dbfbf2df54 Remove rustdoc GUI flaky test
(cherry picked from commit 607ac4bb84)
2026-02-06 08:38:33 -08:00
Jonathan Brouwer 322be0cdee Remove the 4 failing tests from rustdoc-gui
(cherry picked from commit bce8c00e2f)
2026-02-06 08:34:18 -08:00
Guillaume Gomez 34f6f4827d Move remaining doc attribute parsing errors to warnings
(cherry picked from commit c910511cab)
2026-02-05 11:44:34 -08:00
Guillaume Gomez d8ac42edd1 Make more doc attribute parsing error into future warnings
(cherry picked from commit 6d713489d0)
2026-02-05 11:38:02 -08:00
Guillaume Gomez 9126c7a0b7 Emit a future error warning for duplicate doc attribute
(cherry picked from commit 7dbbab63e2)
2026-02-05 11:36:45 -08:00
Trevor Gross dcea3c7ea3 Revert "Enable outline-atomics by default on AArch64 Windows platforms"
This reverts commit 1ed1b6e267.

(cherry picked from commit 9fb68d60ef)
2026-02-05 11:36:35 -08:00
Trevor Gross 4afad17828 Revert "Enable outline-atomics by default on AArch64 Android"
This reverts commit c455903978.

(cherry picked from commit 1173034b7b)
2026-02-05 11:36:35 -08:00
Trevor Gross b5e2de23c2 Revert "Enable outline-atomics by default on AArch64 Fuchsia"
This reverts commit 21525f862d.

(cherry picked from commit a9da102e20)
2026-02-05 11:36:35 -08:00
Trevor Gross 610c87797c Revert "Enable outline-atomics by default on AArch64 OpenBSD"
This reverts commit 66c150c1fa.

(cherry picked from commit 63e16520a2)
2026-02-05 11:36:35 -08:00
Trevor Gross e9a79f3f76 Revert "Enable outline-atomics by default on AArch64 FreeBSD"
This reverts commit 383053e016.

(cherry picked from commit 54f88be3cd)
2026-02-05 11:36:35 -08:00