Skip to content

Tracking Issue for asm_const #93332

@Amanieu

Description

@Amanieu
Member

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

Summary

This feature adds a const <expr> operand type to asm! and global_asm!.

  • <expr> must be an integer constant expression.
  • The value of the expression is formatted as a string and substituted directly into the asm template string.

Status

Blocked on the stabilization of inline consts (#76001).

Activity

added
A-inline-assemblyArea: Inline assembly (`asm!(…)`)
B-unstableBlocker: Implemented in the nightly compiler and unstable.
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
F-asm`#![feature(asm)]` (not `llvm_asm`)
on Jan 26, 2022
bstrie

bstrie commented on Jan 28, 2022

@bstrie
Contributor

Is it possible that this may not actually be blocked on inline_const? AIUI, the concern was that stabilizing asm_const would expose the semantics of inline_const to stable, so any change to the semantics of the yet-unstable inline_const would potentially break stable users of asm_const. But AFAICT there are no more foreseen semantic changes coming to inline_const, and the only remaining question is a syntactic one, specifically with regard to how macros would consume const {} blocks, which seems irrelevant to asm! which is providing its own syntax over inline_const anyway. Of course, it's worth asking to determine whether or not it's correct that the semantics of inline_const have truly solidified.

added a commit that references this issue on Jul 10, 2022
added a commit that references this issue on Jul 16, 2022
added a commit that references this issue on Oct 16, 2022

40 remaining items

added a commit that references this issue on Aug 14, 2024
196d256
added a commit that references this issue on Aug 14, 2024
ehuss

ehuss commented on Aug 14, 2024

@ehuss
Contributor

@Amanieu Can this be closed now?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-inline-assemblyArea: Inline assembly (`asm!(…)`)B-unstableBlocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCF-asm`#![feature(asm)]` (not `llvm_asm`)T-langRelevant to the language teamdisposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ehuss@joshtriplett@Amanieu@RalfJung@bstrie

        Issue actions

          Tracking Issue for asm_const · Issue #93332 · rust-lang/rust