Skip to content

Tracking Issue for asm_goto #119364

Open
Open
@nbdd0121

Description

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

Summary

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

Metadata

Assignees

No one assigned

    Labels

    A-inline-assemblyArea: Inline assembly (`asm!(…)`)C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCF-asm`#![feature(asm)]` (not `llvm_asm`)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions