about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-08-25Merge pull request #20528 from ShoyuVanilla/nightly-zscriptChayim Refael Friedman-0/+1
fix: Masquerade as nightly cargo when invoking flycheck with `-Zscript`
2025-08-25Remove expect collapsible_span_lint_calls from span_lint_and_thenAlexey Semenyuk-7/+4
2025-08-25Do not open every source file twice when reading itJakub Beránek-2/+8
2025-08-25Set default codegen backend to gccAntoni Boucher-1/+1
2025-08-25Don't map Chalk's `Normalize` to next solver's `NormalizesTo`Chayim Refael Friedman-6/+16
`NormalizesTo` is a private predicate that should not be used outside the solver. For normalization, rustc uses `AliasRelate`, so replace with that.
2025-08-25Fix `async_yields_async` wrongly unmangled macros (#15553)Samuel Tardieu-29/+176
Closes rust-lang/rust-clippy#15552 changelog: [`async_yields_async`] fix wrong unmangle of macros
2025-08-25Normalize all types when finishing inferenceChayim Refael Friedman-0/+29
The new solver does not eagerly normalize, but things after inference expect types to be normalized. rustc does the same. Also, I'm afraid other things in r-a don't expect results of the solver to be unnormalized. We'll need to handle that.
2025-08-25Update booksrustbot-0/+0
2025-08-26fix: `async_yields_async` wrongly unmangled macrosyanglsh-29/+176
2025-08-25Update to nightly-2025-08-25Antoni Boucher-1/+1
2025-08-25Merge branch 'master' into sync_from_rust_2025_08_25Antoni Boucher-96/+100
2025-08-25Auto merge of #145472 - Kobzol:bootstrap-dist, r=jieyouxubors-273/+607
Enforce in bootstrap that dist and install must have stage at least 1 This is a continuation of my efforts to fix staging in bootstrap after the stage0 redesign. This PR gets rid of all `compiler_for` usages in the `dist` steps :tada: The only remaining usages are in the `test` steps, which are my next goal, and which will be the final boss.. both because they are quite tricky, and because most of the the rest of the steps have been already fixed. The changes are relatively straightforward, `x dist` defaults to stage 2, so in that case we want to use a stage 1 build compiler for everything (except stdlib, but we usually use it even there because of uplifting). What I didn't fix yet are the docs steps, because they are *very* implicit right now, and fixing them deserves its own PR. The first commit reverts the tests that I accidentally removed in https://github.com/rust-lang/rust/pull/145340 :man_facepalming: I did it in this PR to avoid further git conflicts.. Best reviewed commit-by-commit. r? `@jieyouxu` try-job: dist-i686-linux try-job: dist-armhf-linux try-job: dist-x86_64-linux try-job: dist-x86_64-msvc try-job: dist-apple-various try-job: dist-x86_64-apple try-job: x86_64-msvc-2
2025-08-25use size_hint in attrs_to_doc_fragmentsbinarycat-2/+7
2025-08-25On binding not present in all patterns, suggest potential typoEsteban Küber-54/+268
``` error[E0408]: variable `Ban` is not bound in all patterns --> f12.rs:9:9 | 9 | (Foo,Bar)|(Ban,Foo) => {} | ^^^^^^^^^ --- variable not in all patterns | | | pattern doesn't bind `Ban` | help: you might have meant to use the similarly named previously used binding `Bar` | 9 - (Foo,Bar)|(Ban,Foo) => {} 9 + (Foo,Bar)|(Bar,Foo) => {} | ```
2025-08-25rustdoc(opt): build_impl: check document_private earlierbinarycat-17/+17
2025-08-25Cache trait solving across queries in the same revisionChayim Refael Friedman-66/+140
Caching trait solving can do a lot to speed. Unfortunately it also consume a huge amount of memory. Therefore, as part of the migration to the new solver Jack Huey disabled caching of trait solving (he made the query transparent). The PR proposes a middle ground: do cache trait solving, but only for the same revision. This allows us to be safe because during a revision the inputs cannot change. The result is hopefully much better performance to features that tend to do a bulk of trait solving, and also repeat the same query (e.g. inference then IDE features). There is another limitation: results are only cached in the same thread, to remove the need for synchronization which will be expensive. More measurements are required to check whether it's better to use a synchronized global cache, or maybe stay with a thread-local cache but batch multiple feature requests (highlighting, inlay hints etc.) of the same file to the same thread. Alongside the actual cache we store the revision, because we need to verify it (we can't eagerly clear caches when incrementing the revision), and also the address of the db to prevent multiple dbs from interleaving (this is mostly relevant in tests, although injected highlighting also uses a new db, therefore maybe it's better to move it to a separate thread). This "games" analysis-stats to both be way faster and use way more memory; the former is because analysis-stats doesn't increment revisions, therefore all queries share the cache and hit ratio is way too good, the latter is because analysis-stats doesn't increment revisions and therefore the cache isn't cleared. Both are not representative of a typical IDE scenario.
2025-08-25Switch next solver to use a specific associated type for trait def idChayim Refael Friedman-178/+234
The compiler just puts `DefId` in there, but rust-analyzer uses different types for each kind of item.
2025-08-25Wait for DPkg frontend lock when trying to remove packagesJieyou Xu-3/+6
2025-08-25Don't show warnings from xcrun with -Zverbose-internalsMads Marquart-1/+1
These kinds of warnings can make our test suites fail, so if we want them, we'll need a different flag.
2025-08-25change non-defining use error messagelcnr-47/+98
2025-08-25support non-defining uses in HIR typecklcnr-363/+498
2025-08-25Override `GITHUB_ACTIONS=0` for tidy testsJakub Beránek-1/+4
2025-08-25Merge pull request #4543 from RalfJung/tb-sifaRalf Jung-12/+12
TB: fix SIFA comment
2025-08-25TB: fix SIFA commentRalf Jung-12/+12
2025-08-25Do not forward CI configure arguments to `distcheck` buildsJakub Beránek-1/+8
2025-08-25Auto merge of #145844 - Zalathar:rollup-4kdll9t, r=Zalatharbors-379/+816
Rollup of 10 pull requests Successful merges: - rust-lang/rust#135761 (Dial down detail of B-tree description) - rust-lang/rust#145620 (Account for impossible bounds making seemingly unsatisfyable dyn-to-dyn casts) - rust-lang/rust#145788 (Fix attribute target checking for macro calls) - rust-lang/rust#145794 (bootstrap.py: Improve CPU detection on NetBSD) - rust-lang/rust#145817 (cg_llvm: Replace the `llvm::Bool` typedef with a proper newtype) - rust-lang/rust#145820 (raw-dylib-elf: set correct `DT_VERDEFNUM`) - rust-lang/rust#145828 (Update `bitflags` to 2.9.3.) - rust-lang/rust#145830 (Remove the lifetime from `ExpTokenPair`/`SeqSep`.) - rust-lang/rust#145836 (Remove outdated bug comments) - rust-lang/rust#145842 (rustc-dev-guide subtree update) r? `@ghost` `@rustbot` modify labels: rollup
2025-08-25Handle tarballs in `x test tidy`Jakub Beránek-0/+6
2025-08-25Make `x test distcheck` more self-containedJakub Beránek-24/+36
2025-08-25Rollup merge of #145842 - tshepang:rdg-sync, r=jieyouxuStuart Cook-104/+167
rustc-dev-guide subtree update Subtree update of `rustc-dev-guide` to https://github.com/rust-lang/rustc-dev-guide/commit/a03c1efa970bb695db9dfda35e8793e2160863ff. Created using https://github.com/rust-lang/josh-sync. r? `@ghost`
2025-08-25Rollup merge of #145836 - minux-lee:issue-145835, r=RalfJungStuart Cook-5/+0
Remove outdated bug comments The related issue https://github.com/rust-lang/rust/issues/74836 was closed. This PR may close rust-lang/rust#145835. Details are in the issue rust-lang/rust#145835.
2025-08-25Rollup merge of #145830 - nnethercote:TokenKind-unref, r=chenyukangStuart Cook-49/+49
Remove the lifetime from `ExpTokenPair`/`SeqSep`. `TokenKind` now impls `Copy`, so we can store it directly rather than a reference. r? `@chenyukang`
2025-08-25Rollup merge of #145828 - nnethercote:bitflags-2.9.3, r=joshtriplettStuart Cook-2/+2
Update `bitflags` to 2.9.3. The `bitflags!` macro in the latest release has slightly streamlined codegen. See https://github.com/bitflags/bitflags/pull/458 for details. r? `@yaahc`
2025-08-25Rollup merge of #145820 - mati865:raw-elf-verdefnum, r=bjorn3Stuart Cook-3/+10
raw-dylib-elf: set correct `DT_VERDEFNUM` Previously it indicated a single version, regardless of their count. Observed in: https://github.com/davidlattimore/wild/pull/1041
2025-08-25Rollup merge of #145817 - Zalathar:llvm-bool, r=workingjubileeStuart Cook-63/+103
cg_llvm: Replace the `llvm::Bool` typedef with a proper newtype This should be nicer and more type-safe than the old typedef for `c_int`/`i32`. Using `#[repr(transparent)]` should ensure that it's still ABI-compatible.
2025-08-25Rollup merge of #145794 - he32:bootstrap-netbsd-fix, r=KobzolStuart Cook-1/+13
bootstrap.py: Improve CPU detection on NetBSD ...and add some adaptation of detection for some arm variants.
2025-08-25Rollup merge of #145788 - JonathanBrouwer:proper-fix-for-macro-call-target, ↵Stuart Cook-59/+337
r=jdonszelmann Fix attribute target checking for macro calls Fixes https://github.com/rust-lang/rust/issues/145779 r? `@jdonszelmann`
2025-08-25Rollup merge of #145620 - compiler-errors:fake-dyn-to-dyn, r=lcnrStuart Cook-62/+90
Account for impossible bounds making seemingly unsatisfyable dyn-to-dyn casts Fixes https://github.com/rust-lang/rust/issues/141806 When we have an impossible where clause like `dyn Trait<u8>: Sized`, this may make a dyn-to-dyn cast like `dyn Trait<()> -> dyn trait<u8>` to successfully type check as if it were a wide-to-thin ptr cast (discarding metadata): https://github.com/rust-lang/rust/blob/16ad385579cebb6f7d53367c552661b6b51a4a02/compiler/rustc_hir_typeck/src/cast.rs#L862-L865 In borrowck, we are expecting that the only meaningful dyn-to-dyn cast to be a metadata-preserving wide-to-wide ptr cast, which requires that the principals of the dyn pointers are equal. Borrowck additionally assumes that these principals have already been proven equal *modulo regions*, and we thus ICE since `Trait<u8>` and `Trait<()>` do not unify: https://github.com/rust-lang/rust/blob/16ad385579cebb6f7d53367c552661b6b51a4a02/compiler/rustc_borrowck/src/type_check/mod.rs#L1481-L1524 This PR fixes this ICE by checking whether the RHS of the cast is considered to be Sized in the environment of the MIR typeck, and if so then skipping over this dyn->dyn principal compatibility check. r? `@lcnr` perhaps?
2025-08-25Rollup merge of #135761 - hkBst:patch-9, r=ibraheemdevStuart Cook-31/+45
Dial down detail of B-tree description fixes #134088, though it is a shame to lose some of this wonderful detail. r? `@workingjubilee` EDIT: newest versions keep old detail, but move it down a bit.
2025-08-25fold regions, don't eraselcnr-3/+4
erase regions also anonymizes bound vars, which is undesirable
2025-08-25Merge pull request #2551 from rust-lang/rustc-pullTshepang Mbambo-18742/+34537
Rustc pull update
2025-08-25Fix ExprStmt delete semicolon for toggle_macro_delimiterA4-Tacks-3/+33
2025-08-25fix(std): Add __my_thread_exit stub for QNX 8Rafael RL-1/+1
This commit adds an empty stub for the function for QNX 8 targets. This symbol is required by the unwinder but is not present, causing a linking failure when building with the standard library. Address review feedback: use whitelist for QNX versions
2025-08-25add span to struct pattern rest (..)Valdemar Erk-6/+7
2025-08-25add span to struct pattern rest (..)Valdemar Erk-40/+50
2025-08-25Merge pull request #4542 from rust-lang/rustup-2025-08-25Ralf Jung-596/+2895
Automatic Rustup
2025-08-25Remove bug comments from Repeat variantRyan Lee-5/+0
Removed comments related to a bug in Repeat variant.
2025-08-25Merge ref 'a1dbb443527b' from rust-lang/rustThe Miri Cronjob Bot-595/+2894
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: a1dbb443527bd126452875eb5d5860c1d001d761 Filtered ref: e644bd7324c7e071785356fcaad5bd89e671366b This merge was created using https://github.com/rust-lang/josh-sync.
2025-08-25Prepare for merging from rust-lang/rustThe Miri Cronjob Bot-1/+1
This updates the rust-version file to a1dbb443527bd126452875eb5d5860c1d001d761.
2025-08-25Merge ref 'a1dbb443527b' from rust-lang/rustThe rustc-josh-sync Cronjob Bot-18741/+34536
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: a1dbb443527bd126452875eb5d5860c1d001d761 Filtered ref: c2339048a82c55166f9b9ee83fd618be252a6e23 This merge was created using https://github.com/rust-lang/josh-sync.
2025-08-25Prepare for merging from rust-lang/rustThe rustc-josh-sync Cronjob Bot-1/+1
This updates the rust-version file to a1dbb443527bd126452875eb5d5860c1d001d761.