-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Rollup of 11 pull requests #152551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
JonathanBrouwer
wants to merge
24
commits into
rust-lang:main
Choose a base branch
from
JonathanBrouwer:rollup-q2woQzs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Rollup of 11 pull requests #152551
+1,228
−400
Conversation
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
This code is now in `rustc_middle`, and doesn't need any non-trivial methods, so it can just use `TyCtxt` directly instead.
llvm will look at both 1. the values of "target-features" and 2. the function string attributes. this removes the redundant function string attribute because it is not needed at all. rustc sets the `+backchain` attribute through `target_features_attr(...)`
It can't be serialized to a file.
Support AVRTiny devices in AVR inline assembly Note: This is still draft and this depends on rust-lang#146900 which adds necessary target feature. (The first commit is from it.) --- Follow-up to rust-lang#131323. AVR has devices that reduce the number of registers, similar to RISC-V's RV32E, which have different ABI than default. This PR supports such devices in inline assembly. Refs: AVR-GCC docs https://gcc.gnu.org/wiki/avr-gcc#Reduced_Tiny > On the Reduced Tiny cores (16 GPRs only) several modifications to the ABI above apply: > > Call-saved registers are: R18–R19, R28–R29. Fixed Registers are R16 (__tmp_reg__) and R17 (__zero_reg__). > > Registers used to pass arguments to functions and return values from functions are R25...R20 (instead of R25...R8). Values that occupy more than 4 registers are returned in memory (instead of more than 8 registers). There is only limited library support both from libgcc and AVR-LibC, for example there is no float support and no printf support. r? @Amanieu @rustbot label +O-AVR +A-inline-assembly
…-rules, r=petrochenkov Improve code suggestion for incorrect macro_rules! usage Fixes rust-lang#150899
Change query proc macro to be more rust-analyzer friendly This changes the query proc macro to be more rust-analyzer friendly. - Types in the macro now have a proper span - Some functions have their span hidden so they don't show up when hovering over the query name - Added a hint on the provider field on how to find providers. That is shown when hovering over the query name - Linked query name to the provider field on all queries, not just ones with caching - Added tooltip for the query modifiers by linking to the new types in `rustc_middle:::query::modifiers`
…jorn3 Fix multi-cgu+debug builds using autodiff by delaying autodiff till lto fixes: rust-lang#152470 r? @bjorn3
…fei2009 Don't use `DepContext` in `rustc_middle::traits::cache` - A nice little simplification unlocked by rust-lang#152199. --- This code is now in `rustc_middle`, and doesn't need any non-trivial methods, so it can just use `TyCtxt` directly instead.
…nkov Support serializing CodegenContext Follow up to rust-lang#149209 Part of rust-lang/compiler-team#908
…g,Kivooeo Move tests moved few tests r? @Kivooeo
…it, r=lcnr `-Znext-solver` Prevent committing unfulfilled unsized coercion Fixes rust-lang/trait-system-refactor-initiative#266 r? lcnr
…=dingxiangfei2009 remove redundant backchain attribute in codegen llvm will look at both 1. the values of `"target-features"` and 2. the function string attributes. this patch removes the redundant function string attribute because it is not needed at all. rustc sets the `+backchain` attribute through `target_features_attr(...)` https://github.com/rust-lang/rust/blob/d34f1f931489618efffc4007e6b6bdb9e10f6467/compiler/rustc_codegen_llvm/src/attributes.rs#L590 https://github.com/rust-lang/rust/blob/d34f1f931489618efffc4007e6b6bdb9e10f6467/compiler/rustc_codegen_llvm/src/attributes.rs#L326-L337
…at-test, r=RalfJung sparc64: enable abi compatibility test fixes rust-lang#115336 We can now remove the exceptions for sparc64 from the abi compatibility tests (since rust-lang#142680). I was also able to remove a cfg for mips64. The remaining (tested) issues seem to be around how `f64` is handled there. cc @RalfJung r? tgross35
…expansion, r=fmease reject inline const patterns pre-expansion Reverts the parser changes from rust-lang#149667 Fixes rust-lang#152499 Awkwardly, some cases of inline const pats can only be caught pre-expansion and some can only be caught post-expansion. rust-lang#149667 switched from only rejecting the former to only rejecting the latter.
Contributor
Author
|
@bors r+ rollup=never p=5 |
Contributor
Contributor
Author
|
Trying commonly failed jobs because this is a large rollup |
This comment has been minimized.
This comment has been minimized.
rust-bors bot
pushed a commit
that referenced
this pull request
Feb 12, 2026
Rollup of 11 pull requests try-job: x86_64-msvc-1 try-job: i686-msvc-1 try-job: x86_64-mingw-1 try-job: test-various try-job: armhf-gnu try-job: aarch64-apple try-job: x86_64-gnu-llvm-20-3 try-job: dist-various-2
Contributor
Contributor
|
⌛ Testing commit fa90379 with merge 2b92de4... Workflow: https://github.com/rust-lang/rust/actions/runs/21965603482 |
rust-bors bot
pushed a commit
that referenced
this pull request
Feb 12, 2026
…uwer Rollup of 11 pull requests Successful merges: - #146901 (Support AVRTiny devices in AVR inline assembly) - #150988 (Improve code suggestion for incorrect macro_rules! usage) - #152422 (Change query proc macro to be more rust-analyzer friendly) - #152496 (Fix multi-cgu+debug builds using autodiff by delaying autodiff till lto) - #152520 (Don't use `DepContext` in `rustc_middle::traits::cache`) - #152528 (Support serializing CodegenContext) - #152082 (Move tests) - #152444 (`-Znext-solver` Prevent committing unfulfilled unsized coercion) - #152486 (remove redundant backchain attribute in codegen) - #152529 (sparc64: enable abi compatibility test) - #152548 (reject inline const patterns pre-expansion)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
A-query-system
Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html)
rollup
A PR which is a rollup
S-waiting-on-bors
Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
WG-trait-system-refactor
The Rustc Trait System Refactor Initiative (-Znext-solver)
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:
DepContextinrustc_middle::traits::cache#152520 (Don't useDepContextinrustc_middle::traits::cache)-Znext-solverPrevent committing unfulfilled unsized coercion #152444 (-Znext-solverPrevent committing unfulfilled unsized coercion)r? @ghost
Create a similar rollup