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

add Fold/VisitMut methods for Vec<T>, Option<T>, Punctuated, etc. #1599

Open
programmerjake opened this issue Mar 20, 2024 · 0 comments
Open

Comments

@programmerjake
Copy link
Contributor

programmerjake commented Mar 20, 2024

I'm trying to build a Fold visitor that removes all Attributes that match a pattern, using Fold::fold_attribute doesn't work because I want to replace the attribute with nothing, not another attribute.

I think adding Fold::fold_attributes is a good solution.

I also ran into this problem when trying to transform Stmt into nothing, I had to construct a no-op Stmt.

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

No branches or pull requests

1 participant