Commit graph

277144 commits

Author SHA1 Message Date
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
Rémy Rakic
c6063d45b7 Revert "Rollup merge of #134371 - scottmcm:fix-134352, r=oli-obk"
This reverts commit 7c301ecdf5, reversing
changes made to dffaad8332.

(cherry picked from commit 0bb4880581)
2025-02-06 09:53:26 -08:00
Rémy Rakic
7302b302d0 Revert "Auto merge of #134330 - scottmcm:no-more-rvalue-len, r=matthewjasper"
This reverts commit e108481f74, reversing
changes made to 303e8bd768.

(cherry picked from commit ca1c17c88d)
2025-02-06 09:53:26 -08:00
Jakub Beránek
13c3f9b949 Do not include GCC source code in source tarballs
The licensing story is unclear, it makes the archive much larger, and we should not need it for building anything in the tarballs (yet).

(cherry picked from commit f854f34a50)
2025-02-06 09:53:26 -08:00
Esteban Küber
f264675a80 modify test to side-step platform-dependent stderr output
(cherry picked from commit 592f2c90da)
2025-02-06 09:53:26 -08:00
Esteban Küber
e98d52408c Add check for missing fields in enum variant pattern
(cherry picked from commit d44f021904)
2025-02-06 09:53:26 -08:00
Esteban Küber
887965ddb9 Ensure that we don't try to access fields on a non-struct pattern type in diagnostic
Fix #135209.

(cherry picked from commit 5f04f98c9a)
2025-02-06 09:53:26 -08:00
bors
0277061b9a Auto merge of #136391 - ehuss:rust-1.85-beta-backports, r=ehuss
[beta-1.85] backports

* [Add `AsyncFn*` to `core` prelude](https://github.com/rust-lang/rust/pull/135852)
* [Disable `overflow_delimited_expr` in edition 2024](https://github.com/rust-lang/rust/pull/136312)
* [Disable some incorrect rust-analyzer diagnostics on beta](https://github.com/rust-lang/rust/pull/136236)
    * [fix: Fix #[rustc_deprecated_safe_2024]](https://github.com/rust-lang/rust-analyzer/pull/19044)
    * [fix: Fix a bug where enum variants were not considered properly in type ns resolution](https://github.com/rust-lang/rust-analyzer/pull/18976)
* Update edition-guide
    * [Add alternatives for static-mut-refs](https://github.com/rust-lang/edition-guide/pull/354)
    * [Remove rustfmt-overflow-delimited-expr](https://github.com/rust-lang/edition-guide/pull/357)
2025-02-01 17:22:31 +00:00
Eric Huss
cfe3de22e8 Fix core AsyncFn stability attribute 2025-02-01 07:43:21 -08:00
Eric Huss
b5a02ff689 Update edition-guide 2025-02-01 07:29:04 -08:00
Jacob Pratt
fdc22dc54c Rollup merge of #136312 - compiler-errors:overflow_delimited_expr-2024, r=ytmimi
Disable `overflow_delimited_expr` in edition 2024

This reverts the style guide changes and sets the default to "false" in rustfmt for style edition 2024.

r? `@ytmimi`

cc `@rust-lang/style` `@rust-lang/rustfmt`
2025-02-01 07:26:31 -08:00
Lukas Wirth
2fa9d47dfe Disable some incorrect rust-analyzer diagnostics on beta 2025-02-01 07:26:01 -08:00
Matthias Krüger
ee94112627 Rollup merge of #135852 - lukas-code:asyncfn-prelude-core, r=compiler-errors
Add `AsyncFn*` to `core` prelude

In https://github.com/rust-lang/rust/pull/132611 these got added to the `std` prelude only, which looks like an oversight.

r? libs-api
cc `@compiler-errors`
2025-02-01 07:25:01 -08:00
bors
14445aaf35 Auto merge of #136017 - cuviper:beta-next, r=cuviper
[beta] backports

- Always force non-trimming of path in `unreachable_patterns` lint #135310
- Add Profile Override for Non-Git Sources #135433
- resolve symlinks of LLVM tool binaries before copying them #135585
- add cache to `AmbiguityCausesVisitor` #135618
- When LLVM's location discriminator value limit is exceeded, emit locations with dummy spans instead of dropping them entirely #135643
- make it possible to use ci-rustc on tarball sources #135722
- Remove test panic from File::open #135837
- Only assert the `Parser` size on specific arches #135855
- [beta] TRPL: more backward-compatible Edition changes #135843

r? cuviper
2025-01-26 03:39:15 +00:00
Chris Krycho
130f95117f [beta] TRPL: integrate edits to Chapter 17 2025-01-25 16:48:11 -08:00
Chris Krycho
ee2ff9de0f [beta] TRPL: more backward-compatible Edition changes
- Improve the discussion of `unsafe` blocks within `unsafe` functions.
- Fix formatting in Appendix A
2025-01-25 16:48:11 -08:00
Josh Stone
f05d305f5a Only assert the Parser size on specific arches
The size of this struct depends on the alignment of `u128`, for example
powerpc64le and s390x have align-8 and end up with only 280 bytes. Our
64-bit tier-1 arches are the same though, so let's just assert on those.

(cherry picked from commit aef640a613)
2025-01-25 16:48:11 -08:00
Chris Denton
5f5e70bfc6 Remove test panic from File::open
(cherry picked from commit fed5f98c47)
2025-01-25 16:48:11 -08:00
onur-ozkan
e92addfac4 make it possible to use ci-rustc on tarball sources
Previously, bootstrap was using `Config::last_modified_commit` unconditionally to figure
the commit has to download precompiled rustc artifact from CI, which was leading builds to
fail on tarball sources as `Config::last_modified_commit` requires `git` to be present in the project
source. This change makes bootstrap to call `Config::last_modified_commit` only when it's running on
git-managed source and read `git-commit-hash` file otherwise.

Signed-off-by: onur-ozkan <work@onurozkan.dev>
(cherry picked from commit 903cddb392)
2025-01-25 16:48:11 -08:00