Rollup of 14 pull requests#152574
Open
JonathanBrouwer wants to merge 34 commits intorust-lang:mainfrom
Open
Conversation
Unit struct constructors used as the RHS of a `type const` associated const used to ICE during normalization because they were lowered as `Const::new_unevaluated` with a Ctor def_id. The compiler now properly constructs a concrete ValTree value for const constructors.
- 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)
Fix ICE in borrowck when recovering `fn_sig` for `-> _` (Should be) a proper fix for rust-lang#135845, replaces a dummy binder with a concrete one not to ICE, as mentioned in rust-lang#147631 (comment). Fixes rust-lang#135845 r? @lcnr @jackh726
…atures, r=nadrieril,jdonszelmann Remove unused features Detected by rust-lang#152164. ~~Only allow `unused_features` if there are complex platform-specific features enabled.~~
…ercote 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)
…em, r=jdonszelmann Port `#[rustc_diagnostic_item]` to the new attribute parsers r? @jdonszelmann
…-handling-keep-all-errors, r=lcnr Report unconstrained region in hidden types lazily Fixes rust-lang/trait-system-refactor-initiative#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#151322 and rust-lang#151323. I believe they are a [different problem](rust-lang#151322 (comment)). r? @lcnr
…onszelmann Improve the `inline_fluent!` macro For rust-lang#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 &rust-lang#96;inline_fluent!&rust-lang#96; macro](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Bikeshed.20the.20new.20.60inline_fluent!.60.20macro/with/572646242)
…-used-in-const, r=jieyouxu Fix ICE in supertrait_vtable_slot when supertrait has missing generics Fixes rust-lang#151330
…nst-ctor, r=Kivooeo Add regression test for type_const with unit struct ctor under mGCA - Add a regression test for rust-lang#148953 Closes rust-lang#148953
…ooeo,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.
…-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.
…safe, r=jdonszelmann Remove `deprecated_safe` and its corresponding feature gate This unimplements the feature gate for tracking issue rust-lang#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 (rust-lang#131229 (comment)) When someone wants to do work on it the feature gate can be re-added r? @jdonszelmann
…er2, 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#152539
… r=jieyouxu Replace "bug" with "issue" in triagebot ping messages Pinging a group might not be for a bug, but for discussion. For example rust-lang#152532 (comment)
fix missleading error for tuple ctor r? BoxyUwU fixes rust-lang#151414
Contributor
Author
|
@bors r+ rollup=never p=5 |
Contributor
Contributor
|
⌛ Testing commit d93a38a with merge a05d1cd... Workflow: https://github.com/rust-lang/rust/actions/runs/21990158742 |
rust-bors bot
pushed a commit
that referenced
this pull request
Feb 13, 2026
…uwer Rollup of 14 pull requests Successful merges: - #152323 (Fix ICE in borrowck when recovering `fn_sig` for `-> _`) - #152469 (Remove unused features) - #152515 (Extract `DepKindVTable` constructors to their own module) - #152555 (Port `#[rustc_diagnostic_item]` to the new attribute parsers) - #152218 (Report unconstrained region in hidden types lazily) - #152356 (Improve the `inline_fluent!` macro) - #152392 (Fix ICE in supertrait_vtable_slot when supertrait has missing generics) - #152407 (Add regression test for type_const with unit struct ctor under mGCA) - #152440 (Fix typos and grammar in compiler and build documentation) - #152536 (bootstrap: add explicit UTF-8 encoding to text-mode open() calls) - #152554 (Remove `deprecated_safe` and its corresponding feature gate) - #152556 (doc: move riscv64a23-unknown-linux-gnu to tier 2) - #152563 (Replace "bug" with "issue" in triagebot ping messages) - #152565 (fix missleading error for tuple ctor) Failed merges: - #152512 (core: Implement feature `float_exact_integer_constants`) - #152296 (Port `rust_nonnull_optimization_guaranteed` and `rustc_do_not_const_check` to the new attribute parser)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Successful merges:
fn_sigfor-> _#152323 (Fix ICE in borrowck when recoveringfn_sigfor-> _)DepKindVTableconstructors to their own module #152515 (ExtractDepKindVTableconstructors to their own module)#[rustc_diagnostic_item]to the new attribute parsers #152555 (Port#[rustc_diagnostic_item]to the new attribute parsers)inline_fluent!macro #152356 (Improve theinline_fluent!macro)deprecated_safeand its corresponding feature gate #152554 (Removedeprecated_safeand its corresponding feature gate)Failed merges:
float_exact_integer_constants#152512 (core: Implement featurefloat_exact_integer_constants)rust_nonnull_optimization_guaranteedandrustc_do_not_const_checkto the new attribute parser #152296 (Portrust_nonnull_optimization_guaranteedandrustc_do_not_const_checkto the new attribute parser)r? @ghost
Create a similar rollup