Tracking Issue for asm_goto_with_outputs · Issue #119364 · rust-lang/rust (original) (raw)

The feature gate for the issue is #![feature(asm_goto_with_outputs)].

Summary

This now tracks the with_outputs variant since #131523. asm_goto was stabilized in 1.87.

This feature adds a label<block> operand type to asm!.

Example:

unsafe { asm!( "jmp {}", label { println!("Jumped from asm!"); } ); }

The block must have unit type.

Steps

Unresolved Questions

@rustbot labels: +A-inline-assembly +F-asm