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