Open matthiaskrgr opened 8 months ago
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.
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