Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax of mangled names is outdated #3112

Closed
EFanZh opened this issue Apr 18, 2021 · 1 comment · Fixed by #3130
Closed

Syntax of mangled names is outdated #3112

EFanZh opened this issue Apr 18, 2021 · 1 comment · Fixed by #3130

Comments

@EFanZh
Copy link

EFanZh commented Apr 18, 2021

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 =.

@michaelwoerister
Copy link
Member

Thanks for the bug report, @EFanZh!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants