Skip to content

Add #[rustc_pass_indirectly_in_non_rustic_abis]#144529

Merged
bors merged 3 commits intorust-lang:masterfrom
beetrees:pass-indirectly-attr
Nov 4, 2025
Merged

Add #[rustc_pass_indirectly_in_non_rustic_abis]#144529
bors merged 3 commits intorust-lang:masterfrom
beetrees:pass-indirectly-attr

Conversation

@beetrees
Copy link
Contributor

@beetrees beetrees commented Jul 27, 2025

This PR adds an internal #[rustc_pass_indirectly_in_non_rustic_abis] attribute that can be applied to structs. Structs marked with this attribute will always be passed using PassMode::Indirect { on_stack: false, .. } when being passed by value to functions with non-Rustic calling conventions. This is needed by #141980; see that PR for further details.

cc @joshtriplett

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) F-c_variadic `#![feature(c_variadic)]` 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.