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

Share literal validation logic with compiler #1253

Merged
merged 1 commit into from
May 7, 2019
Merged

Share literal validation logic with compiler #1253

merged 1 commit into from
May 7, 2019

Conversation

matklad
Copy link
Member

@matklad matklad commented May 7, 2019

This is neat: the unescape module is literary what compiler is using right now:

https://github.com/rust-lang/rust/blob/c6ac57564852cb6e2d0db60f7b46d9eb98d4b449/src/libsyntax/parse/unescape.rs

So, yeah, code sharing via copy-paste!

@matklad
Copy link
Member Author

matklad commented May 7, 2019

bors r+

bors bot added a commit that referenced this pull request May 7, 2019
1253: Share literal validation logic with compiler r=matklad a=matklad

This is neat: the unescape module is literary what compiler is using right now:

https://github.com/rust-lang/rust/blob/c6ac57564852cb6e2d0db60f7b46d9eb98d4b449/src/libsyntax/parse/unescape.rs

So, yeah, code sharing via copy-paste!



Co-authored-by: Aleksey Kladov <[email protected]>
@bors
Copy link
Contributor

bors bot commented May 7, 2019

Build succeeded

@bors bors bot merged commit 313314e into master May 7, 2019
@bors bors bot deleted the unescape branch May 7, 2019 16:51
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 this pull request may close these issues.

1 participant