Commit Graph

277162 Commits

Author SHA1 Message Date
bors
4eb161250e Auto merge of #138521 - cuviper:stable-next, r=cuviper
[stable] Release 1.85.1

- [Fix the doctest-merging feature of the 2024 Edition.](https://github.com/rust-lang/rust/pull/137899/)
- [Relax some `target_feature` checks when generating docs.](https://github.com/rust-lang/rust/pull/137632/)
- [Fix errors in `std::fs::rename` on Windows 1607.](https://github.com/rust-lang/rust/pull/137528/)
- [Downgrade bootstrap `cc` to fix custom targets.](https://github.com/rust-lang/rust/pull/137460/)
- [Skip submodule updates when building Rust from a source tarball.](https://github.com/rust-lang/rust/pull/137338/)

Added backports to fix CI:

- Remove latest Windows SDK from 32-bit CI #137753
- Do not install rustup on Rust for Linux job #137947

cc `@rust-lang/release`
r? cuviper
1.85.1
2025-03-15 16:27:19 +00:00
Josh Stone
4d11490950 Specify std:fs::rename in relnotes 2025-03-15 07:31:28 -07:00
Jakub Beránek
c990a19a41 Do not use rustup to build Rust for Linux
(cherry picked from commit e3117e6e18)
2025-03-14 21:41:18 -07:00
Josh Stone
0e8fd2dbef Use matrix.image, and i686-msvc isn't split here 2025-03-14 18:27:50 -07:00
Chris Denton
3c37eba27c Remove Win SDK 10.0.26100.0 from CI
(cherry picked from commit 25617c7e69)
2025-03-14 17:47:52 -07:00
Josh Stone
eb5c32de04 Release 1.85.1 2025-03-14 14:42:36 -07:00
Ralf Jung
541b2c6009 also skip abi_required_features check in rustdoc
(cherry picked from commit 4c939db0e7)
2025-03-14 14:12:37 -07:00
Ralf Jung
207a543c21 add test
(cherry picked from commit dc04c0ca48)
2025-03-14 14:12:37 -07:00
Ralf Jung
c13521b739 also fix potential issues with mixed stable/unstable target features in rustdoc
(cherry picked from commit 039af88e09)
2025-03-14 14:12:37 -07:00
Ralf Jung
d4de520fc4 rustdoc: disable forbidden #[target_feature] check
(cherry picked from commit b6f2240000)
2025-03-14 14:12:37 -07:00
Josh Stone
eb2bae3fa6 Bless rustdoc-ui differences
These changed in the stable backport because we don't have the rewording
that came in #133154.
2025-03-12 13:43:25 -07:00
Michael Howell
23322f301d doctests: build test bundle and harness separately
This prevents the included test case from getting at nightly-only
features when run on stable. The harness builds with
RUSTC_BOOTSTRAP, but the bundle doesn't.

(cherry picked from commit 9cf531d26f)
2025-03-12 13:18:11 -07:00
Michael Howell
b30cc1ef49 doctests: fix merging on stable
Fixes #137898

The generated multi-test harness relies on nightly-only APIs,
so the only way to run it on stable is to enable them. Since
tests that use crate attrs don't be merged, there's no way to use
nightly-only features on it anyway.

(cherry picked from commit 5d6eeea5f9)
2025-03-12 13:05:30 -07:00
Chris Denton
3aa36cf951 Return OutOfMemoryError and update docs
(cherry picked from commit 3cb53df1fe)
2025-03-12 13:01:22 -07:00
Chris Denton
e616d37b33 Windows: Use MoveFileEx by default in fs:rename
(cherry picked from commit 0dfe2ae3fb)
2025-03-12 13:01:18 -07:00
onur-ozkan
a280bac772 downgrade bootstrap cc
Signed-off-by: onur-ozkan <work@onurozkan.dev>
(cherry picked from commit e4ca11f87f)
2025-03-12 12:48:28 -07:00
onur-ozkan
a28fc0b44a skip submodule updating logics on tarballs
Signed-off-by: onur-ozkan <work@onurozkan.dev>
(cherry picked from commit d2203ad59c)
2025-03-12 12:48:23 -07:00
bors
4d91de4e48 Auto merge of #137181 - cuviper:stable-next, r=cuviper
Prepare Rust 1.85.0 stable release

This includes a relnotes sync and a few last-minute backports:

- change `literal_string_with_formatting_args` lint category to nursery #136982
- Update the reference for reverted `extended_varargs_abi_support` #136934
- fix musl's CVE-2025-26519 #137127

r? cuviper
1.85.0
2025-02-17 18:17:27 +00:00
Pietro Albini
86193fa8a0 Revert "force "HEAD" for non-CI and git_upstream_merge_base for CI environment"
This reverts commit 33ac202904.

(cherry picked from commit 6287749471)
2025-02-17 09:19:32 -08:00
Pietro Albini
d5a78fbeae Revert "add new CI step: "setup upstream remote""
This reverts commit 4454fa998c.

(cherry picked from commit 395fb701e7)
2025-02-17 09:19:32 -08:00
Josh Stone
1d56b49cac bump channel to stable 2025-02-17 09:01:56 -08:00
Josh Stone
b2ffcdf55f sync RELEASES.md with master 2025-02-17 09:00:26 -08:00
Pietro Albini
792e9c74c3 fix musl's CVE-2025-26519
(cherry picked from commit a6ee2f4af2)
2025-02-17 08:56:01 -08:00
Josh Stone
13c3ebbc9d Update the reference for reverted extended_varargs_abi_support 2025-02-17 08:27:47 -08:00
Alex Macleod
acc7e1c8ea change literal_string_with_formatting_args lint category to nursery (#14014)
This PR changes literal_string_with_formatting_args category from
`suspicious` to `nursery` since there are thousands of false positive on
GitHub.

Closes #13989 since it's no longer problematic with such false positive
with ~~`pedantic`~~ `nursery` category.

changelog: [`literal_string_with_formatting_args` ] change category to
`nursery` from `suspicious`
2025-02-17 08:25:44 -08:00
bors
461de7492e Auto merge of #136980 - cuviper:beta-next, r=cuviper
[beta] backports

- Pattern Migration 2024: try to suggest eliding redundant binding modifiers #136577, #136857
- chore: update rustc-hash 2.1.0 to 2.1.1 #136605
- Make `AsyncFnOnce`, `AsyncFnMut`, `AsyncFn` non-`#[fundamental]` #136724
- fix ensure_monomorphic_enough #136839
- Revert "Stabilize `extended_varargs_abi_support`" #136897, #136934

r? cuviper
2025-02-13 18:26:20 +00:00
Jubilee Young
e5ba20b0ef Revert "Stabilize extended_varargs_abi_support"
This reverts commit 685f189b43.
2025-02-13 08:52:53 -08:00
Lukas Markeffsky
a061e7eb65 fix ensure_monomorphic_enough
(cherry picked from commit c1da4f1d3c)
2025-02-13 08:52:47 -08:00
Lukas Markeffsky
4991b29a36 add test for const type_id misoptimization
(cherry picked from commit 4898753d5d)
2025-02-13 08:52:47 -08:00
Frank Steffahn
e3bcb727fb Make AsyncFnOnce, AsyncFnMut, AsyncFn non-#[fundamental]
(cherry picked from commit 7155382240)
2025-02-13 08:52:40 -08:00
Lucas Sunsi Abreu
f5be3c8636 chore: update rustc-hash 2.1.0 to 2.1.1
(cherry picked from commit 62c2f65ccd)
2025-02-13 08:52:36 -08:00
dianne
8ee0fcb51b add more pattern migration tests
Most of these are meant to test possible future improvements, but since
they cover cases the existing test suite didn't, I figure including them
now may be helpful.

(cherry picked from commit f1e4d94fa4)
2025-02-10 23:42:03 -08:00
dianne
c8e8068fe9 peace of mind: be absolutely sure we don't try to emit a 0-part suggestion
(cherry picked from commit 8dcdb3eb3c)
2025-02-10 23:40:11 -08:00
dianne
909010ebe6 try to suggest eliding redundant binding modifiers
(cherry picked from commit b32a5331dc)
2025-02-10 23:40:02 -08:00
dianne
2f295779ee peace of mind: remove a call to Option::expect
(cherry picked from commit 060cc37f32)
2025-02-10 23:39:51 -08:00
dianne
ee0838fcab reword default binding mode notes
(cherry picked from commit a5cc4cbe64)
2025-02-10 23:39:29 -08:00
dianne
215bfdd07d separate labels for default binding mode spans into their own notes
(cherry picked from commit 767f82039c)
2025-02-10 23:38:56 -08:00
dianne
97cb2d553a don't include trailing open parens in labels for reference patterns
(cherry picked from commit a064e78663)
2025-02-10 23:33:10 -08:00
dianne
6ff2d19d1c experimentally label the spans for default binding modes
(cherry picked from commit 203d3109d8)
2025-02-10 23:32:54 -08:00
dianne
2ee601ced6 highlight the whole problem subpattern when pointing out the default binding mode
(cherry picked from commit 4331f55b72)
2025-02-10 23:21:22 -08:00
dianne
f8b23cdb75 add tests for label formatting
(cherry picked from commit 9202001c1c)
2025-02-10 23:20:55 -08:00
dianne
a9465deb4b use more specific wording for subpatterns from macro expansions
(cherry picked from commit bbe40acb9a)
2025-02-10 23:20:14 -08:00
dianne
1a18daac77 reword pattern migration diagnostic to make sense in all editions
This aligns the main error message a bit more with the phrasing in the
Edition Guide and provides a bit more information on the labels to
(hopefully!) aid in understanding.

(cherry picked from commit bdc6c4d07b)
2025-02-10 23:19:28 -08:00
dianne
acec5868ec pattern migration: move labels out of the suggestion struct
(cherry picked from commit 724b885b4e)
2025-02-10 23:08:35 -08:00
bors
38213856a8 Auto merge of #136650 - cuviper:beta-next, r=cuviper
[beta] backports

- Ensure that we don't try to access fields on a non-struct pattern type #135222
- Do not include GCC source code in source tarballs #135658
- Temporarily bring back `Rvalue::Len` #135709
- Add a couple of missing `ensure_sufficient_stacks` #136352
- Enable kernel sanitizers for aarch64-unknown-none-softfloat #135905

r? cuviper
2025-02-06 20:56:48 +00:00
Jubilee Young
bf24cade3e Enable kernel sanitizers for aarch64-unknown-none-softfloat
We want kernels to be able to use this bare metal target, so
let's enable the sanitizers that kernels want to use.

(cherry picked from commit 6b06aa6192)
2025-02-06 09:53:26 -08:00
Rémy Rakic
01283c450e ensure sufficient stack in unsafety check
(cherry picked from commit 94562ee1ea)
2025-02-06 09:53:26 -08:00
Rémy Rakic
741fa9e39f ensure sufficient stack in tail call check
(cherry picked from commit 2c778c1e4c)
2025-02-06 09:53:26 -08:00
Rémy Rakic
940548094b add tests for issue 135671
(cherry picked from commit c69dea90d7)
2025-02-06 09:53:26 -08:00
Rémy Rakic
197b416baf Revert "Auto merge of #133734 - scottmcm:lower-indexing-to-ptrmetadata, r=davidtwco,RalfJung"
This reverts commit b57d93d8b9, reversing
changes made to 0aeaa5eb22.

(cherry picked from commit 122a55bb44)
2025-02-06 09:53:26 -08:00