Commit graph

318722 commits

Author SHA1 Message Date
Lukas Wirth
ca35562cd3
Merge pull request #21640 from Veykril/push-rutrqvxousks
minor: Remove incorrect warning log
2026-02-13 15:33:46 +00:00
Lukas Wirth
da9ff14a13 Remove incorrect warning log 2026-02-13 16:24:28 +01:00
xonx
34981bf3cd add comments to tests 2026-02-13 14:44:40 +00:00
WANG Rui
df798ad68e ci: Lock cross toolchain version and update docs 2026-02-13 22:11:43 +08:00
WANG Rui
e37374b1ac ci: dist-arm-linux: Cleanup unused crosstool-ng 2026-02-13 22:11:42 +08:00
WANG Rui
c0c3c59b83 ci: Drop outdated toolchain configuration: aarch64-linux-gnu.defconfig 2026-02-13 22:11:42 +08:00
lcnr
b3d9fbc172 ICE to delayed bug 2026-02-13 13:50:43 +00:00
lcnr
b4f38c1da4 add regression test 2026-02-13 13:50:43 +00:00
Antoni Boucher
e373b93b0b Fix formatting 2026-02-13 08:35:12 -05:00
Antoni Boucher
27e25ff6d8 Add failing tests 2026-02-13 08:27:31 -05:00
Oscar Bray
ab13120882 Port #[rustc_proc_macro_decls] to the new attribute parser. 2026-02-13 13:24:37 +00:00
Antoni Boucher
5577bd7ac4 Add missing -Zjson-target-spec for m68k test 2026-02-13 08:13:29 -05:00
Antoni Boucher
458adbd66a Implement fptoint_sat for f16 and f128 2026-02-13 08:12:59 -05:00
Antoni Boucher
c2b8abd810 Update to nightly-2026-02-13 2026-02-13 07:49:27 -05:00
Jonathan Brouwer
d93a38a488
Rollup merge of #152565 - Kivooeo:ctor-diag, r=BoxyUwU
fix missleading error for tuple ctor

r? BoxyUwU

fixes https://github.com/rust-lang/rust/issues/151414
2026-02-13 13:35:04 +01:00
Jonathan Brouwer
6638db643f
Rollup merge of #152563 - SpriteOvO:triagebot-ping-messages, r=jieyouxu
Replace "bug" with "issue" in triagebot ping messages

Pinging a group might not be for a bug, but for discussion. For example https://github.com/rust-lang/rust/issues/152532#issuecomment-3892646735
2026-02-13 13:35:04 +01:00
Jonathan Brouwer
c3b53f7a36
Rollup merge of #152556 - ozankenangungor:docs-riscv64a23-tier2, r=jieyouxu
doc: move riscv64a23-unknown-linux-gnu to tier 2

This updates the platform support documentation to reflect that "riscv64a23-unknown-linux-gnu" is now Tier 2.

 -Docs-only change (no compiler/runtime behavior change).

Fixes rust-lang/rust#152539
2026-02-13 13:35:03 +01:00
Jonathan Brouwer
1944af691e
Rollup merge of #152554 - JonathanBrouwer:remove_deprecated_safe, r=jdonszelmann
Remove `deprecated_safe` and its corresponding feature gate

This unimplements the feature gate for tracking issue https://github.com/rust-lang/rust/issues/94978
The author of that tracking issue and the MCP seem to no longer exist
Afaik we can just do this, but let me know if I'm wrong

Because this feature has been idle for 3+ years, and it is in the way to finish the attribute refactoring (https://github.com/rust-lang/rust/issues/131229#issuecomment-2971351163)
When someone wants to do work on it the feature gate can be re-added

r? @jdonszelmann
2026-02-13 13:35:03 +01:00
Jonathan Brouwer
9ca0ebbd53
Rollup merge of #152536 - ozankenangungor:bootstrap-explicit-open-encoding, r=jieyouxu
bootstrap: add explicit UTF-8 encoding to text-mode open() calls

Make text-mode `open()` calls in `bootstrap.py`
explicitly use `encoding="utf-8"`.

This avoids relying on platform-dependent default encodings
when running Python < 3.15.

Binary-mode opens remain unchanged.
2026-02-13 13:35:02 +01:00
Jonathan Brouwer
fd598ebac8
Rollup merge of #152440 - him2him2:fix-typos-compiler, r=Kivooeo,Kobzol
Fix typos and grammar in compiler and build documentation

Fix contextual typos and grammar issues in compiler and build docs that automated spellcheckers miss:

- `compiler/rustc_codegen_llvm/src/debuginfo/doc.md`: fix 5 issues (adaption → adaptation, "allow to" → "allow V-ing" x3, later → latter + plural)
- `compiler/rustc_thread_pool/src/sleep/README.md`: fix 2 issues (idle → active per context, then → than)
- `src/bootstrap/README.md`: fix 2 issues (rust → Rust, add missing article "the")
- `src/ci/docker/README.md`: fix 2 issues ("come form" → "come from", grammar)

No functional changes.
2026-02-13 13:35:02 +01:00
Jonathan Brouwer
7ea8f5b721
Rollup merge of #152407 - AprilNEA:test/issue-148953-type-const-ctor, r=Kivooeo
Add regression test for type_const with unit struct ctor under mGCA

- Add a regression test for https://github.com/rust-lang/rust/issues/148953

Closes #148953
2026-02-13 13:35:01 +01:00
Jonathan Brouwer
e91d02a8c3
Rollup merge of #152392 - TaKO8Ki:missing-generics-in-traits-used-in-const, r=jieyouxu
Fix ICE in supertrait_vtable_slot when supertrait has missing generics

Fixes rust-lang/rust#151330
2026-02-13 13:35:01 +01:00
Jonathan Brouwer
f1b935d08f
Rollup merge of #152356 - JonathanBrouwer:inline_diag4, r=jdonszelmann
Improve the `inline_fluent!` macro

For https://github.com/rust-lang/rust/issues/151366

This PR turns `inline_fluent!` into a proc macro, so we can run validation on the messages in this macro :)
I started a thread here because I don't like the name of the macro, but that's for a future PR: [#t-compiler > Bikeshed the new &#96;inline_fluent!&#96; macro](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Bikeshed.20the.20new.20.60inline_fluent!.60.20macro/with/572646242)
2026-02-13 13:35:01 +01:00
Jonathan Brouwer
98e8f99bc0
Rollup merge of #152218 - adwinwhite:fix-mir-borrowck-opaque-handling-keep-all-errors, r=lcnr
Report unconstrained region in hidden types lazily

Fixes https://github.com/rust-lang/trait-system-refactor-initiative/issues/264

I didn't copy the mechanism of HIR typeck as I found that we just need to be lax in the unconstrained region case.
It already ignores non-defining uses and invalid params.

About tests, I'm having trouble coming up with more complex ones. 🙁

This fixes `ukanren` and `codecrafters-redis-rust` but not rust-lang/rust#151322 and rust-lang/rust#151323.
I believe they are a [different problem](https://github.com/rust-lang/rust/issues/151322#issuecomment-3864656974).

r? @lcnr
2026-02-13 13:35:00 +01:00
Jonathan Brouwer
a211e2fbba
Rollup merge of #152555 - JonathanBrouwer:port_diagnostic_item, r=jdonszelmann
Port `#[rustc_diagnostic_item]` to the new attribute parsers

r? @jdonszelmann
2026-02-13 13:34:59 +01:00
Jonathan Brouwer
6fa5694807
Rollup merge of #152515 - Zalathar:dep-kind-vtables, r=nnethercote
Extract `DepKindVTable` constructors to their own module

This is a fairly substantial chunk of code in `rustc_query_impl::plumbing` that mostly doesn't need to be inside a macro at all.

The part that does need to be in a macro is the declaration of a named vtable constructor function for each query. I have extracted that into its own separate call to `rustc_middle::rustc_with_all_queries!` in the new module, so that dep-kind vtable construction is almost entirely confined to `rustc_query_impl::dep_kind_vtables`.

There should be no change to compiler behaviour.

r? nnethercote (or compiler)
2026-02-13 13:34:59 +01:00
Jonathan Brouwer
65d982abd8
Rollup merge of #152469 - mu001999-contrib:cleanup/unused-features, r=nadrieril,jdonszelmann
Remove unused features

Detected by https://github.com/rust-lang/rust/pull/152164.

~~Only allow `unused_features` if there are complex platform-specific features enabled.~~
2026-02-13 13:34:58 +01:00
Jonathan Brouwer
9d662b5815
Rollup merge of #152323 - JohnTitor:issue-135845-2, r=lcnr
Fix ICE in borrowck when recovering `fn_sig` for `-> _`

(Should be) a proper fix for rust-lang/rust#135845, replaces a dummy binder with a concrete one not to ICE, as mentioned in https://github.com/rust-lang/rust/pull/147631#issuecomment-3460724226.
Fixes rust-lang/rust#135845
r? @lcnr @jackh726
2026-02-13 13:34:58 +01:00
usamoi
4796ff1bf5 move escape_symbol_name to cg_ssa 2026-02-13 20:31:18 +08:00
Zalathar
1d6ef95075 Extract DepKindVTable constructors to their own module 2026-02-13 23:19:20 +11:00
dependabot[bot]
c2c7d5d7ef
build(deps): bump qs from 6.14.1 to 6.14.2 in /editors/code
Bumps [qs](https://github.com/ljharb/qs) from 6.14.1 to 6.14.2.
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.14.1...v6.14.2)

---
updated-dependencies:
- dependency-name: qs
  dependency-version: 6.14.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-13 11:43:39 +00:00
Lukas Wirth
4b5b181935
Merge pull request #21609 from Veykril/push-qknzslvkmtyt
internal: Use rayon for proc-macro loading
2026-02-13 11:33:11 +00:00
cyrgani
f601b29825 inline SameThread and CrossThread 2026-02-13 11:24:50 +00:00
Lukas Wirth
b132beb7e0 internal: Use rayon for proc-macro loading 2026-02-13 12:24:47 +01:00
cyrgani
31053484a7 replace MessagePipe trait with its impl 2026-02-13 11:23:26 +00:00
Makai
a18724523c nix-dev-shell: fix a typo 2026-02-13 17:54:34 +08:00
Kivooeo
f63007cd3b fix missleading error for tuple ctor 2026-02-13 09:54:04 +00:00
Jonathan Brouwer
cbc661022e Port #[rustc_diagnostic_item] to the new attribute parsers 2026-02-13 09:46:47 +00:00
Shoyu Vanilla (Flint)
f931a79a2a
Merge pull request #21633 from ChayimFriedman2/proc-macro-is-not-fn
fix: Do not resolve proc macros in value ns (as functions), only in macro ns, outside their defining crate
2026-02-13 08:47:17 +00:00
Shoyu Vanilla (Flint)
6040177bfb
Merge pull request #21636 from Shourya742/2026-02-13-remove-edit-in-place-in-migrated-handlers
Remove mutable edit in place with edit::AstNodeEdit in migrated  assist handlers
2026-02-13 08:45:05 +00:00
bors
d7daac06d8 Auto merge of #152562 - Zalathar:rollup-tQDKhYQ, r=Zalathar
Rollup of 17 pull requests

Successful merges:

 - rust-lang/rust#150551 (Compute localized outlives constraints lazily)
 - rust-lang/rust#150988 (Improve code suggestion for incorrect macro_rules! usage)
 - rust-lang/rust#152422 (Change query proc macro to be more rust-analyzer friendly)
 - rust-lang/rust#152496 (Fix multi-cgu+debug builds using autodiff by delaying autodiff till lto)
 - rust-lang/rust#152514 (Collect active query jobs into struct `QueryJobMap`)
 - rust-lang/rust#152520 (Don't use `DepContext` in `rustc_middle::traits::cache`)
 - rust-lang/rust#152528 (Support serializing CodegenContext)
 - rust-lang/rust#152082 (Move tests)
 - rust-lang/rust#152232 (Add must_use for FileTimes)
 - rust-lang/rust#152329 (Simplify parallel! macro)
 - rust-lang/rust#152444 (`-Znext-solver` Prevent committing unfulfilled unsized coercion)
 - rust-lang/rust#152486 (remove redundant backchain attribute in codegen)
 - rust-lang/rust#152519 (Fix feature gating for new `try bikeshed` expressions)
 - rust-lang/rust#152529 (sparc64: enable abi compatibility test)
 - rust-lang/rust#152548 (reject inline const patterns pre-expansion)
 - rust-lang/rust#152550 (Port #[prelude_import] to the attribute parser)
 - rust-lang/rust#152552 (Add 2048-bit HvxVectorPair support to Hexagon SIMD ABI checks)

Failed merges:

 - rust-lang/rust#152515 (Extract `DepKindVTable` constructors to their own module)
2026-02-13 08:37:54 +00:00
bit-aloo
c6b1f8ad9a
remove edit_in_place from generate_new assist with edit::AstNodeEdit 2026-02-13 13:14:06 +05:30
Yuki Okushi
391a395158 Improve diagnostics following reviews 2026-02-13 16:41:47 +09:00
Yuki Okushi
a8d7a47927 improve associated-type suggestions from bounds 2026-02-13 16:41:47 +09:00
bit-aloo
85e0c3209e
remove edit_in_place from convert_bool_to_enum assist with edit::AstNodeEdit 2026-02-13 13:11:46 +05:30
bit-aloo
140a039fb7
remove edit_in_place from generate_trait_from_impl assist with edit::AstNodeEdit 2026-02-13 13:09:27 +05:30
bit-aloo
c8e284bf01
remove edit_in_place from replace_if_let_with_match assist with edit::AstNodeEdit 2026-02-13 13:01:50 +05:30
Ralf Jung
884126770c
Merge pull request #4856 from rust-lang/rustup-2026-02-13
Automatic Rustup
2026-02-13 07:24:46 +00:00
Asuna
4c10efb939 Replace "bug" with "issue" in triagebot ping messages 2026-02-13 07:55:58 +01:00
bit-aloo
96d6a3e077
remove edit_in_place from convert_let_else_to_match assist with edit::AstNodeEdit 2026-02-13 12:20:42 +05:30