Skip to content

Set @source_name for procedures with divergent source/linkage name #1351

Open

Description

@mooori

Names in Wasm's name section need not be unique. For debug builds of examples/ with panic-abort rustc produces duplicate names in the Wasm name section, see #1341.

#1342 deduplicates names, which can lead to divergent source/linkage names. In that case, the new @source_name attribute should be added to the corresponding procedure. See vm3716 for details.

Blocked until the compiler uses vm with that feature, probably >= 0.30.

Activity

  1. added this to the v0.11.0 milestone on Aug 26, 2026
  2. self-assigned this
    on Aug 26, 2026
  3. added
    codegenIssues or features related to lowering IR into MASM
    on Aug 26, 2026
  4. added theissue type on Aug 26, 2026
  5. added
    debuggingFunctionality or bugs related to debug info consumed/emitted by the compiler
    on Aug 26, 2026
  6. modified the milestones: v0.11.0, v0.13.0 on Oct 26, 2026
  7. bitwalker commented on Oct 26, 2026

    @bitwalker
    Collaborator

    Assembler support for @source_name has been implemented, so we can start emitting this now

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

Metadata

Metadata

Assignees

Labels

codegenIssues or features related to lowering IR into MASMdebuggingFunctionality or bugs related to debug info consumed/emitted by the compiler

Type

Fields

Priority

None yet

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions