rust-lang / rust-lang/rustc-demangle

rustc-demangle does not allow encoding version in symbol name

Open
#58 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
319
Forks
69
PR merge metrics
No merged PRs in 30d

Description

The RFC 2603 says that

// The <decimal-number> specifies the encoding version.
<symbol-name> = "_R" [<decimal-number>] <path> [<instantiating-crate>]

But it seem that rustc-demangle forces an upper case letter after _R:

https://github.com/rust-lang/rustc-demangle/blob/2811a1ad6f7c8bead2ef3671e4fdc10de1553e96/src/v0.rs#L56-L59

But I am not sure whether this issue belongs to RFC 2603 or rust-demangle.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the RFC 2603 mangled-name syntax, then inspect src/v0.rs at lines 56-59 to compare the parser's requirement after _R with the specification. Confirm the expected handling of a decimal encoding version and verify that existing demangling behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.