Skip to content

Add missing inline asm register operand types - #2402

Open
hsanzg wants to merge 1 commit into
rust-lang:masterfrom
hsanzg:asm-nonnull
Open

hsanzg wants to merge 1 commit into
rust-lang:masterfrom
hsanzg:asm-nonnull

Conversation

@hsanzg

@hsanzg hsanzg commented Nov 2, 2026 •

Copy link
Copy Markdown

Adds three missing items to the list of register operand types supported by asm!.

Support for shared and mutable references as asm! input operands was introduced at least before this commit on 2020, for MaybeUninit in rust-lang/rust#114790, and for NonNull it's awaiting introduction/stabilization in rust-lang/rust#165008.

I'm doubtful about listing references, because those work via coercion to raw pointers. Wdyt?

@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Nov 2, 2026
@hsanzg hsanzg changed the title Add missing inline asm register operands Add missing inline asm register operand types Nov 2, 2026
@hsanzg
hsanzg force-pushed the asm-nonnull branch 3 times, most recently from 8928902 to 1bfc53b Compare November 2, 2026 01:51
Shared and mutable references as `asm!` input operands were introduced
at least before 8ab0f2d3c5a85563b98c4896116e3d53154fff9c; `MaybeUninit`
was introduced in rust-lang/rust#114790;
`NonNull` is awaiting stabilization in
rust-lang/rust#165008.

This branch has not been deployed

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

Labels

S-waiting-on-review Status: The marked PR is awaiting review from a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants