Skip to content

Rollup of 9 pull requests#152547

Closed
JonathanBrouwer wants to merge 20 commits intorust-lang:mainfrom
JonathanBrouwer:rollup-7SHXjcU
Closed

Rollup of 9 pull requests#152547
JonathanBrouwer wants to merge 20 commits intorust-lang:mainfrom
JonathanBrouwer:rollup-7SHXjcU

Conversation

@JonathanBrouwer
Copy link
Contributor

Successful merges:

r? @ghost

Create a similar rollup

Delta17920 and others added 20 commits February 4, 2026 03:33
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.
…=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
@rust-bors rust-bors bot added the rollup A PR which is a rollup label Feb 12, 2026
@rustbot rustbot added 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) S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Feb 12, 2026
@JonathanBrouwer
Copy link
Contributor Author

@bors r+ rollup=never p=5

@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 12, 2026

📌 Commit d8242fe has been approved by JonathanBrouwer

It is now in the queue for this repository.

@rust-bors rust-bors bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 12, 2026
@JonathanBrouwer
Copy link
Contributor Author

Looks like it might be a while before this rollup runs, feel free to recreate it if you can make it significantly bigger :)

@rust-bors rust-bors bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Feb 13, 2026
@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 13, 2026

PR #146901, which is a member of this rollup, was unapproved.
This rollup was thus also unapproved.

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-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.