summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-08-04Auto merge of #144895 - BoxyUwU:stable, r=BoxyUwU 1.89.0bors-1/+136
[stable] Prepare rust 1.89.0 r? `@ghost`
2025-08-04bump channelBoxy-1/+1
2025-08-04release notesBoxy-0/+135
2025-08-02Auto merge of #144800 - Mark-Simulacrum:beta-next, r=Mark-Simulacrumbors-455/+329
[beta] backports Backport: * add unsupported_calling_conventions to lint list rust-lang/rust#144772 * thread name in stack overflow message rust-lang/rust#144500 * rustdoc: don't treat methods under const impls or traits as const rust-lang/rust#143381 * [beta] Clippy beta backport rust-lang/rust#144742 r? `@Mark-Simulacrum`
2025-08-02Revert "`return_and_then`: only lint returning expressions (#14783)"Philipp Krones-165/+9
This reverts commit 459364b971c717462e99848ceba3eb545867ee33, reversing changes made to 62ba9969a4969574716e52dac1a28a11202c0ea2.
2025-08-02Revert "Extend `manual_is_variant_and lint` to check for boolean map ↵Philipp Krones-240/+15
comparisons (#14646)" This reverts commit 551870df96213c423c94a012c1981fc0cdc06fc2, reversing changes made to 3927a61a546b0f134b3790d66ef73f1960e8bc8b.
2025-08-02Consider deref'ed argument as non-temporary (#15172)Timo-16/+166
If there are more than one dereference (there is one corresponding matched with a borrow in any case), consider that the argument might point to a place expression, which is the safest choice. Also, use an appropriate number of dereferences in suggestions involving arguments using themselves multiple dereferences. Fixes rust-lang/rust-clippy#15166 changelog: [`swap_with_temporary`]: fix false positive leading to different semantics being suggested, and use the right number of dereferences in suggestion r? y21 <!-- TRIAGEBOT_START --> <!-- TRIAGEBOT_SUMMARY_START --> ### Summary Notes - [beta-nomination](https://github.com/rust-lang/rust-clippy/pull/15172#issuecomment-3016752569) by [samueltardieu](https://github.com/samueltardieu) *Managed by `@rustbot`—see [help](https://forge.rust-lang.org/triagebot/note.html) for details* <!-- TRIAGEBOT_SUMMARY_END --> <!-- TRIAGEBOT_END -->
2025-08-02Move `uninlined_format_args` to `pedantic` (#15287)dswij-1/+1
Fixes https://github.com/rust-lang/rust-clippy/issues/15151 See also https://rust-lang.zulipchat.com/#narrow/channel/257328-clippy/topic/uninlined_format_args.20is.20contentious/ changelog: Move [`uninlined_format_args`] to `pedantic`
2025-08-01rustdoc: don't treat methods under const impls or traits as constDeadbeef-1/+50
2025-08-01thread name in stack overflow messagejoboet-32/+87
2025-08-01add unsupported_calling_conventions to lint listRalf Jung-0/+1
2025-07-25Auto merge of #144414 - cuviper:beta-next, r=cuviperbors-504/+852
[beta] backports - Reword mismatched-lifetime-syntaxes text based on feedback rust-lang/rust#143914 - Fix `-Ctarget-feature`s getting ignored after `crt-static` rust-lang/rust#144143 - Mitigate `#[align]` name resolution ambiguity regression with a rename rust-lang/rust#144080 r? cuviper
2025-07-24Update another test for rustc_alignJosh Stone-1/+3
2025-07-24Mitigate `#[align]` name resolution ambiguity regression with a renameJieyou Xu-116/+126
From `#[align]` -> `#[rustc_align]`. Attributes starting with `rustc` are always perma-unstable and feature-gated by `feature(rustc_attrs)`. See regression RUST-143834. For the underlying problem where even introducing new feature-gated unstable built-in attributes can break user code such as ```rs macro_rules! align { () => { /* .. */ }; } pub(crate) use align; // `use` here becomes ambiguous ``` refer to RUST-134963. Since the `#[align]` attribute is still feature-gated by `feature(fn_align)`, we can rename it as a mitigation. Note that `#[rustc_align]` will obviously mean that current unstable user code using `feature(fn_aling)` will need additionally `feature(rustc_attrs)`, but this is a short-term mitigation to buy time, and is expected to be changed to a better name with less collision potential. See <https://rust-lang.zulipchat.com/#narrow/channel/238009-t-compiler.2Fmeetings/topic/.5Bweekly.5D.202025-07-17/near/529290371> where mitigation options were considered. (cherry picked from commit 69b71e44107b4905ec7ad84ccb3edf4f14b3df69)
2025-07-24Add test demonstrating current beta `#[align]` name resolution regressionJieyou Xu-0/+43
See RUST-143834. (cherry picked from commit b2e94bf020a99473cf80f05f410af8a5cfc486a6)
2025-07-24tests: Add a regression test for crt-static with target featuresJens Reidel-0/+32
Signed-off-by: Jens Reidel <adrian@travitia.xyz> (cherry picked from commit 1b35d5f89c4e3c605cd455a28f00aad24de0a662)
2025-07-24rustc_codegen_ssa: Don't skip target-features after crt-staticJens Reidel-2/+2
The current behaviour introduced by commit a50a3b8e318594c41783294e440d864763e412ef would discard any target features specified after crt-static (the only member of RUSTC_SPECIFIC_FEATURES). This is because it returned instead of continuing processing the next flag. Signed-off-by: Jens Reidel <adrian@travitia.xyz> (cherry picked from commit 664d742933e020f70032e0fd8cd9c8869848fd4f)
2025-07-24Reword mismatched-lifetime-syntaxes text based on feedbackJake Goulding-413/+674
Key changes include: - Removal of the word "syntax" from the lint message. More accurately, it could have been something like "syntax group" or "syntax category", but avoiding it completely is easier. - The primary lint message now reflects exactly which mismatch is occurring, instead of trying to be general. A new `help` line is general across the mismatch kinds. - Suggestions have been reduced to be more minimal, no longer also changing non-idiomatic but unrelated aspects. - Suggestion text no longer mentions changes when those changes don't occur in that specific suggestion. (cherry picked from commit 553074431875701f66107049339dc1e67f0cdeba)
2025-07-21Auto merge of #144087 - cuviper:beta-next, r=cuviperbors-236/+167
[beta] backports - Taint body on invalid call ABI rust-lang/rust#142983 - Fix rustdoc not correctly showing attributes with re-exports rust-lang/rust#143083 - trait_sel: `MetaSized` always holds temporarily rust-lang/rust#144016 - Ensure home directory exists rust-lang/rust#144003 r? cuviper
2025-07-21Ensure home directory existsChris Denton-0/+5
This works around a missing mingw home directory in CI (cherry picked from commit 262d02e6fd1fd1b595f19ac33b4693e431c24832)
2025-07-17trait_sel: `MetaSized` always holds temporarilyDavid Wood-232/+77
As a temporary measure while a proper fix for `tests/ui/sized-hierarchy/incomplete-inference-issue-143992.rs` is implemented, make `MetaSized` obligations always hold. In effect, temporarily reverting the `sized_hierarchy` feature. This is a small change that can be backported. (cherry picked from commit 8d64937dc25eb2b01596a3581ec2660d8e81b9b2)
2025-07-17Fix rustdoc not correctly showing attributes with re-exportsJonathan Brouwer-1/+15
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com> (cherry picked from commit 58418d881a91e9f37b0c8fd07f0218850725efda)
2025-07-17Taint body on invalid call ABIMichael Goulet-1/+33
(cherry picked from commit e776065164f22872e8cadf5bc5e47352c27982dc)
2025-07-17Add rust-invalid ABIMichael Goulet-2/+37
(cherry picked from commit e245570def155191b61f73647eb543dd45685b2f)
2025-07-12Auto merge of #143794 - lnicola:ra-backports, r=cuviperbors-110/+562
`rust-analyzer` backports Closes https://github.com/rust-lang/rust-analyzer/issues/20182
2025-07-11fix: Use `ROOT` hygiene for `args` inside new `format_args!` expansionShoyu Vanilla-27/+36
2025-07-11Backport new sized-hierarchy trait bounds in old waysShoyu Vanilla-24/+78
2025-07-11Adjust minicore for Sized Hierarchy changesLukas Wirth-52/+75
2025-07-11Minic rustc's new `format_args!` expansionShoyu Vanilla-41/+366
2025-07-11Implement region negation to minicore and add a flag `fmt_before_1_89_0`Shoyu Vanilla-8/+49
2025-07-11Auto merge of #143757 - cuviper:beta-next, r=cuviperbors-292/+883
[beta] backports - Beta backport: null terminate UNICODE_STRINGs rust-lang/rust#143275 - Fix hang in --print=file-names in bootstrap rust-lang/rust#142928 - Reduce mismatched-lifetime-syntaxes suggestions to MaybeIncorrect rust-lang/rust#142980 - Update LLVM submodule rust-lang/rust#143126 - Do not unify borrowed locals in CopyProp. rust-lang/rust#143509 - Disable docs for `compiler-builtins` and `sysroot` rust-lang/rust#143660 - Update version placeholders in stdarch rust-lang/stdarch#1840 r? cuviper
2025-07-10Update version placeholders in stdarchJosh Stone-0/+0
2025-07-10Disable docs for `compiler-builtins` and `sysroot`Josh Stone-4/+6
Bootstrap already had a manual doc filter for the `sysroot` crate, but other library crates keep themselves out of the public docs by setting `[lib] doc = false` in their manifest. This seems like a better solution to hide `compiler-builtins` docs, and removes the `sysroot` hack too. (cherry picked from commit 87e7539fcdfa45b2aab618c044f888432c5d097d)
2025-07-10Do not optimize stable-mir ui tests.Camille GILLOT-189/+472
(cherry picked from commit b1fdb4bdc8818aced53e46a34a3e92cfcfcc8ece)
2025-07-10Do not unify borrowed locals in CopyProp.Camille GILLOT-94/+360
(cherry picked from commit bab9c752e836bb94d87249422d48f8c85b4f41a4)
2025-07-10Update LLVM submoduledianqk-0/+0
(cherry picked from commit 1339b905505917725c3f1cd1bb52d7ff4f5eea9a)
2025-07-10Add a regression test for ld64dianqk-0/+24
(cherry picked from commit 32115c3a1710d1ac98b2ffea23014e0d2ee19c0d)
2025-07-10Reduce mismatched-lifetime-syntaxes suggestions to MaybeIncorrectJake Goulding-3/+3
`cargo fix` does not have a way of distinguishing a suggestion with multiple spans which should all be applied from multiple suggestions where only one should be applied (see issue 53934). `cargo fix` only works with `MachineApplicable` suggestions, so downgrading the applicability will stop `cargo` from suggesting the user run `cargo fix`. rust-analyzer does work with `MaybeIncorrect`, so interactive fixes are still available. (cherry picked from commit 46e9d2f9fc065e33cc54ccfa0e0e3c34376ebeaa)
2025-07-10Fix hang in --print=file-names in bootstrapNoratrieb-0/+6
In an interactive context, the subprocess inherited a real tty stdin, which lead it it waiting for something to happen, even though nothing happened. By explicitly passing null as stdin we make sure an empty file is passed, which achieves the desired behavior. (cherry picked from commit 3003050d473abd13d56c7e7966b971bd7443194f)
2025-07-07Null terminate UNICODE_STRINGsChris Denton-2/+12
2025-07-02Auto merge of #143068 - cuviper:beta-next, r=cuviperbors-462/+356
[beta] stage0 bump to 1.88.0 Part of our normal release process: https://forge.rust-lang.org/release/process.html#beta-stage0-update-friday r? cuviper
2025-06-26stage0 bump to 1.88.0Josh Stone-462/+356
2025-06-25Auto merge of #142991 - ehuss:update-beta-cargo, r=ehussbors-0/+0
[beta] update cargo and reference ## cargo 1 commits in 84709f085062cbf3c51fa507527c1b2334015178..c24e1064277fe51ab72011e2612e556ac56addf7 2025-06-22 23:58:39 +0000 to 2025-06-23 13:53:07 -0700 - [Beta-1.89] Fix potential deadlock in `CacheState::lock` (rust-lang/cargo#15699) ### reference 3 commits in 50fc1628f36563958399123829c73755fa7a8421..9571d4d38cc580bd9fe926f97fccd98f215564a9 2025-06-19 02:02:39 +0000 to 2025-06-24 22:32:56 +0000 - Add new temporary lifetime extension rule (rust-lang/reference#1813) - Fix smart punctuation inside grammar terminals (rust-lang/reference#1869) - Fix placement of codegen link definitions (rust-lang/reference#1868)
2025-06-24[beta] Update src/doc/referenceEric Huss-0/+0
2025-06-24[beta] Update cargoEric Huss-0/+0
2025-06-23Auto merge of #142920 - cuviper:beta-next, r=cuviperbors-58/+58
[beta] Prepare Rust 1.89.0 - Update version placeholders - Update channel to beta - Account for beta revisions when normalizing versions rust-lang/rust#142930 r? cuviper
2025-06-23Account for beta revisions when normalizing versionsJosh Stone-8/+8
Several UI tests have a `normalize-stderr` for "you are using x.y.z" rustc versions, and that regex is flexible enough for suffixes like "-nightly" and "-dev", but not for "-beta.N". We can just add '.' to that trailing pattern to include this. (cherry picked from commit 8469966710a16fd11af832d592569bcdf2298081)
2025-06-23Update channel to betaJosh Stone-1/+1
2025-06-23Update version placeholdersJosh Stone-49/+49
2025-06-23Auto merge of #142901 - matthiaskrgr:rollup-topt4p6, r=matthiaskrgrbors-97/+1854
Rollup of 5 pull requests Successful merges: - rust-lang/rust#141597 (Document subdirectories of UI tests with README files) - rust-lang/rust#142823 (Port `#[no_mangle]` to new attribute parsing infrastructure) - rust-lang/rust#142828 (1.88.0 release notes) - rust-lang/rust#142854 (centralize `-Zmin-function-alignment` logic) - rust-lang/rust#142875 (Check rustdoc-json-types FORMAT_VERSION is correctly updated) r? `@ghost` `@rustbot` modify labels: rollup