summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-02-17Auto merge of #137181 - cuviper:stable-next, r=cuviper 1.85.0bors-56/+310
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
2025-02-17Revert "force "HEAD" for non-CI and `git_upstream_merge_base` for CI ↵Pietro Albini-13/+3
environment" This reverts commit 33ac202904e7820268b71b3280a7d2590378e3b9. (cherry picked from commit 6287749471076a3065a5793cb0a1678324e768bb)
2025-02-17Revert "add new CI step: "setup upstream remote""Pietro Albini-39/+0
This reverts commit 4454fa998c9da1f1eee1602c8e8cd2732505c104. (cherry picked from commit 395fb701e74f58e6c77e2cbdc1967478924e819f)
2025-02-17bump channel to stableJosh Stone-1/+1
2025-02-17sync RELEASES.md with masterJosh Stone-2/+264
2025-02-17fix musl's CVE-2025-26519Pietro Albini-0/+41
(cherry picked from commit a6ee2f4af223ff7636c5d55c735fd5bb51c8578f)
2025-02-17Update the reference for reverted `extended_varargs_abi_support`Josh Stone-0/+0
2025-02-17change `literal_string_with_formatting_args` lint category to nursery (#14014)Alex Macleod-1/+1
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-13Auto merge of #136980 - cuviper:beta-next, r=cuviperbors-255/+1077
[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-13Revert "Stabilize `extended_varargs_abi_support`"Jubilee Young-12/+124
This reverts commit 685f189b4307435b83d625fea397ef36dff4e955.
2025-02-13fix ensure_monomorphic_enoughLukas Markeffsky-44/+5
(cherry picked from commit c1da4f1d3c4fc4beb5edcfa8a303a1dcbe27b65e)
2025-02-13add test for const type_id misoptimizationLukas Markeffsky-0/+35
(cherry picked from commit 4898753d5d20a1a871053eece96ec8d5a4f690f8)
2025-02-13Make `AsyncFnOnce`, `AsyncFnMut`, `AsyncFn` non-`#[fundamental]`Frank Steffahn-3/+0
(cherry picked from commit 71553822402dca6635ecd5ae8418bbafc3740cf4)
2025-02-13chore: update rustc-hash 2.1.0 to 2.1.1Lucas Sunsi Abreu-8/+8
(cherry picked from commit 62c2f65ccde6d5ab26ca0181ee6ec3b24f163eae)
2025-02-10add more pattern migration testsdianne-1/+400
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 f1e4d94fa4bd253c26610e8d79d5da8b52bad99f)
2025-02-10peace of mind: be absolutely sure we don't try to emit a 0-part suggestiondianne-1/+4
(cherry picked from commit 8dcdb3eb3c28428267bd7bf4cb63e06f9e4330c1)
2025-02-10try to suggest eliding redundant binding modifiersdianne-49/+82
(cherry picked from commit b32a5331dcdcc1993fefeff412a20766557e558d)
2025-02-10peace of mind: remove a call to `Option::expect`dianne-2/+3
(cherry picked from commit 060cc37f3225dd69b5d0df089eec52ff92953b01)
2025-02-10reword default binding mode notesdianne-61/+55
(cherry picked from commit a5cc4cbe64876c339cc1fb47fb962792bc142146)
2025-02-10separate labels for default binding mode spans into their own notesdianne-124/+202
(cherry picked from commit 767f82039c221fa609f752d2a2ea4ffd664f8138)
2025-02-10don't include trailing open parens in labels for reference patternsdianne-2/+2
(cherry picked from commit a064e786633ac81c35abcf00abd9dc57a40ad9bf)
2025-02-10experimentally label the spans for default binding modesdianne-164/+205
(cherry picked from commit 203d3109d8e96a6a4075205e836216d7cd281d5b)
2025-02-10highlight the whole problem subpattern when pointing out the default binding ↵dianne-45/+129
mode (cherry picked from commit 4331f55b729d1a41004305f85dfe4dbbcec3ee3f)
2025-02-10add tests for label formattingdianne-1/+47
(cherry picked from commit 9202001c1c5c3bd9c1fce522744c8620e17d791a)
2025-02-10use more specific wording for subpatterns from macro expansionsdianne-2/+5
(cherry picked from commit bbe40acb9a192ab2afec1f8adc45c3b72925caf2)
2025-02-10reword pattern migration diagnostic to make sense in all editionsdianne-125/+164
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 bdc6c4d07b5ccb91df396e152deafc3a66b539ab)
2025-02-10pattern migration: move labels out of the suggestion structdianne-19/+15
(cherry picked from commit 724b885b4e486a355d176dc78098e131f9c1b2ef)
2025-02-06Auto merge of #136650 - cuviper:beta-next, r=cuviperbors-1554/+2058
[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-06Enable kernel sanitizers for aarch64-unknown-none-softfloatJubilee Young-1/+3
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 6b06aa619297c198e923e1d406a5bb0534260fef)
2025-02-06ensure sufficient stack in unsafety checkRémy Rakic-1/+4
(cherry picked from commit 94562ee1eae83d6cc80bda4d57b43bcdb7a842b5)
2025-02-06ensure sufficient stack in tail call checkRémy Rakic-5/+8
(cherry picked from commit 2c778c1e4ca8053e787998c9b18bb57222719a3d)
2025-02-06add tests for issue 135671Rémy Rakic-0/+30
(cherry picked from commit c69dea90d70212bb430f183df62edc09c8c8a89f)
2025-02-06Revert "Auto merge of #133734 - scottmcm:lower-indexing-to-ptrmetadata, ↵Rémy Rakic-1451/+1663
r=davidtwco,RalfJung" This reverts commit b57d93d8b9525fa261404b4cd9c0670eeb1264b8, reversing changes made to 0aeaa5eb22180fdf12a8489e63c4daa18da6f236. (cherry picked from commit 122a55bb442bd1995df9cf9b36e6f65ed3ef4a1d)
2025-02-06Revert "Rollup merge of #134371 - scottmcm:fix-134352, r=oli-obk"Rémy Rakic-48/+7
This reverts commit 7c301ecdf5e806b7aa3c44e4a185049fabbc4381, reversing changes made to dffaad83327454430129802f240121f8c7866208. (cherry picked from commit 0bb4880581a6963e0b895f9550e9147c68b9537a)
2025-02-06Revert "Auto merge of #134330 - scottmcm:no-more-rvalue-len, r=matthewjasper"Rémy Rakic-51/+272
This reverts commit e108481f74ff123ad98a63bd107a18d13035b275, reversing changes made to 303e8bd768526a5812bb1776e798e829ddb7d3ca. (cherry picked from commit ca1c17c88d1f625763859396ba7a50f36ac45cc0)
2025-02-06Do not include GCC source code in source tarballsJakub Beránek-1/+12
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 f854f34a502c358b0f6826ea3ebf40fb7f146de1)
2025-02-06modify test to side-step platform-dependent stderr outputEsteban Küber-18/+27
(cherry picked from commit 592f2c90da6a6e1b25b3b9c2f13a2e0cfb83dcfc)
2025-02-06Add check for missing fields in enum variant patternEsteban Küber-4/+21
(cherry picked from commit d44f021904e3d5b2870e3c835cbad5e1421e83ec)
2025-02-06Ensure that we don't try to access fields on a non-struct pattern type in ↵Esteban Küber-1/+38
diagnostic Fix #135209. (cherry picked from commit 5f04f98c9aaf04e5f670e04dc12d4665489859fd)
2025-02-01Auto merge of #136391 - ehuss:rust-1.85-beta-backports, r=ehussbors-93/+66
[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-01Fix core AsyncFn stability attributeEric Huss-1/+2
2025-02-01Update edition-guideEric Huss-0/+0
2025-02-01Rollup merge of #136312 - compiler-errors:overflow_delimited_expr-2024, r=ytmimiJacob Pratt-89/+58
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-01Disable some incorrect rust-analyzer diagnostics on betaLukas Wirth-4/+4
2025-02-01Rollup merge of #135852 - lukas-code:asyncfn-prelude-core, r=compiler-errorsMatthias Krüger-0/+3
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-01-26Auto merge of #136017 - cuviper:beta-next, r=cuviperbors-111/+275
[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-25[beta] TRPL: integrate edits to Chapter 17Chris Krycho-0/+0
2025-01-25[beta] TRPL: more backward-compatible Edition changesChris Krycho-0/+0
- Improve the discussion of `unsafe` blocks within `unsafe` functions. - Fix formatting in Appendix A
2025-01-25Only assert the `Parser` size on specific archesJosh Stone-2/+3
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 aef640a6130ccb3edf9bc720881c3a9dde3c0ecd)
2025-01-25Remove test panic from File::openChris Denton-3/+0
(cherry picked from commit fed5f98c47e64bc5e96679165d16e5eec8b4917e)