vickenty / lang-c

Lightweight C parser for Rust
Apache License 2.0
202 stars 30 forks source link

Upgrade to Rust 2018 #46

Closed stevefan1999-personal closed 8 months ago

stevefan1999-personal commented 8 months ago

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.

vickenty commented 8 months ago

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