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

Amend RFC2603 to allow mangled identifiers to start with a digit. #2705

Merged
merged 1 commit into from
Oct 23, 2020

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented May 29, 2019

This was suggested by @pnkfelix in #2603 (comment), and @michaelwoerister seemed to agree to it, but it didn't make it into the RFC before merging.

I also removed the 0-9 -> A-J rewriting of Punycode's base-36 encoding, as it only existed to avoid having identifiers start with decimal digits, which would now work.

cc @rust-lang/compiler Do we have a procedure for amending RFCs?

@eddyb eddyb added T-compiler Relevant to the compiler team, which will review and decide on the RFC. I-nominated labels May 29, 2019
@michaelwoerister
Copy link
Member

Looks good to me!

@nikomatsakis
Copy link
Contributor

We often do an FCP for amendments, but I also think it's ok to "just do it" if it is small and not controversial amongst the folks who were active in the RFC itself. I am fine with this change (but I've not been following the RFC closely).

@eddyb
Copy link
Member Author

eddyb commented May 30, 2019

I've now incorporated the changes into rust-lang/rust#57967, including testing them against rust-lang/rustc-demangle#26 (which has been merged and published).

@SimonSapin SimonSapin changed the title Amend RFC2603 to allow identifiers to start with a digit. Amend RFC2603 to allow mangled identifiers to start with a digit. May 31, 2019
@SimonSapin
Copy link
Contributor

I took the liberty of adding “mangled” to the title. Without context, the title alone sounded like a change to Rust source syntax.

@eddyb eddyb force-pushed the mangling-underscore-escaping branch from e925a40 to 5a4d154 Compare October 23, 2020 17:41
@nikomatsakis nikomatsakis merged commit c849288 into rust-lang:master Oct 23, 2020
@nikomatsakis
Copy link
Contributor

Merging as this reflects the actual implementation.

@eddyb eddyb deleted the mangling-underscore-escaping branch October 23, 2020 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-compiler Relevant to the compiler team, which will review and decide on the RFC.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants