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

Upgrade to Rust 2018 #46

Conversation

stevefan1999-personal
Copy link

@stevefan1999-personal stevefan1999-personal commented Feb 3, 2024

The sed is needed because try is now a reserved keyword in Rust 2018.

I don't think we can possibly upgrade to 2021 right now.

Also, I have changed from HashSet to BTreeSet for the expected tokens, because hash set is by definition unordered! And most people may get confused on why the expected token position may change all the time for identical input, because Rust hash map also have further hash randomization to prevent HashDoS attack.

@stevefan1999-personal stevefan1999-personal changed the title Upgrade to 2018 Upgrade to Rust 2018 Feb 3, 2024
@vickenty
Copy link
Owner

vickenty commented Feb 5, 2024

Thanks, but because lang-c targets rust 1.4.0 I'm afraid this won't work.

@vickenty vickenty closed this Feb 5, 2024
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.

2 participants