Tracking issue for release notes of #133870: Stabilize asm_goto feature gate · Issue #134860 · rust-lang/rust (original) (raw)

This issue tracks the release notes text for #133870.

Steps

Release notes text

The responsible team for the underlying change should edit this section to replace the automatically generated link with a succinct description of what changed, drawing upon text proposed by the author (either in discussion or through direct editing).

Language

Tip

Use the previous releases categories to help choose which one(s) to use.
The category will be de-duplicated with all the other ones by the release team.

More than one section can be included if needed.

Release blog section

If the change is notable enough for inclusion in the blog post, the responsible team should add content to this section.
Otherwise leave it empty.

Stabilization of asm_goto

The asm_goto feature is now stabilized, allowing inline assembly (asm!) to jump to labeled blocks within Rust code. This enables more flexible low-level programming, such as implementing optimized control flow in OS kernels or interacting with hardware more efficiently.

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

cc @nbdd0121, @tmandry -- origin issue/PR authors and assignees for starting to draft text