Skip to content

rustc-demangle does not allow encoding version in symbol name #58

Open
@EFanZh

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:

rustc-demangle/src/v0.rs

Lines 56 to 59 in 2811a1a

match inner.as_bytes()[0] {
b'A'..=b'Z' => {}
_ => return Err(ParseError::Invalid),
}

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

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