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

Trailing comma in Some() #410

Closed
JakkuSakura opened this issue Oct 4, 2022 · 1 comment · Fixed by #412
Closed

Trailing comma in Some() #410

JakkuSakura opened this issue Oct 4, 2022 · 1 comment · Fixed by #412

Comments

@JakkuSakura
Copy link

I'm parsing result from rustc -Z unpretty=ast, which yields a customized format of ron.
My plan is to use regex and ron to parse the result.
Currently Some(1,) doesn't work.

Expected closing `)`

Is it supposed to work?

@JakkuSakura JakkuSakura changed the title Trailling comma in Some() Trailing comma in Some() Oct 4, 2022
@juntyr
Copy link
Member

juntyr commented Oct 4, 2022

@qiujiangkun Thank you for the bug report - this was indeed wrong and I've pushed a fix for it - trailing commas should now work

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 a pull request may close this issue.

2 participants