Skip to content

Syntax of mangled names is outdated #3112

@EFanZh

Description

@EFanZh

I noticed that the syntax of mangled names specified in RFC 2603 is outdated. Specifically, it does not match the implementation of https://github.com/alexcrichton/rustc-demangle/.

Here are some differences I have observed from rustc-demangle:

  1. <binder> is optional in <fn-sig> and <dyn-bounds>;
  2. <const-data> may contain an optional "n" character to indicate negative values.
  3. The placeholder variant of <const> does not contain a <type> item.

Also, the symbol after <fn-sig> is := while the symbol after other non-terminals are =.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions