-
Notifications
You must be signed in to change notification settings - Fork 4
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
rust: fails to reduce away items completely #180
Labels
enhancement
New feature or request
Comments
Thanks for the report! This is due to the fact that treereduce works by deleting tree-sitter AST nodes via their byte ranges. So it's deleting the argument nodes, but their ranges don't include the comma. Not sure what the best fix for this would be. |
langston-barrett
changed the title
fails to reduce away items completely
rust: fails to reduce away items completely
Mar 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Often when reducing fuzzed code, for example
treereduce will manage to reduce away items, but keep the commas separating them
=>
which will then throw annoying syntax errors, hinder further reduction or throw off rustfmt
I think I have seen this with enum/structs too
The text was updated successfully, but these errors were encountered: