| Age | Commit message (Collapse) | Author | Lines |
|
[stable] Prepare rust 1.89.0
r? `@ghost`
|
|
|
|
|
|
[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`
|
|
This reverts commit 459364b971c717462e99848ceba3eb545867ee33, reversing
changes made to 62ba9969a4969574716e52dac1a28a11202c0ea2.
|
|
comparisons (#14646)"
This reverts commit 551870df96213c423c94a012c1981fc0cdc06fc2, reversing
changes made to 3927a61a546b0f134b3790d66ef73f1960e8bc8b.
|
|
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 -->
|
|
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`
|
|
|
|
|
|
|
|
[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
|
|
|
|
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)
|
|
See RUST-143834.
(cherry picked from commit b2e94bf020a99473cf80f05f410af8a5cfc486a6)
|
|
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
(cherry picked from commit 1b35d5f89c4e3c605cd455a28f00aad24de0a662)
|
|
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)
|
|
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)
|
|
[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
|
|
This works around a missing mingw home directory in CI
(cherry picked from commit 262d02e6fd1fd1b595f19ac33b4693e431c24832)
|
|
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)
|
|
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
(cherry picked from commit 58418d881a91e9f37b0c8fd07f0218850725efda)
|
|
(cherry picked from commit e776065164f22872e8cadf5bc5e47352c27982dc)
|
|
(cherry picked from commit e245570def155191b61f73647eb543dd45685b2f)
|
|
`rust-analyzer` backports
Closes https://github.com/rust-lang/rust-analyzer/issues/20182
|
|
|
|
|
|
|
|
|
|
|
|
[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
|
|
|
|
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)
|
|
(cherry picked from commit b1fdb4bdc8818aced53e46a34a3e92cfcfcc8ece)
|
|
(cherry picked from commit bab9c752e836bb94d87249422d48f8c85b4f41a4)
|
|
(cherry picked from commit 1339b905505917725c3f1cd1bb52d7ff4f5eea9a)
|
|
(cherry picked from commit 32115c3a1710d1ac98b2ffea23014e0d2ee19c0d)
|
|
`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)
|
|
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)
|
|
|
|
[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
|
|
|
|
[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)
|
|
|
|
|
|
[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
|
|
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)
|
|
|
|
|
|
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
|