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

Filter some macros #96

Closed
hustxiaoc opened this issue Dec 15, 2020 · 4 comments
Closed

Filter some macros #96

hustxiaoc opened this issue Dec 15, 2020 · 4 comments

Comments

@hustxiaoc
Copy link

For some macros like log!, trace! is there a way to filter them?

@Mingun
Copy link

Mingun commented Mar 6, 2021

Even better if you could specify what macros should keep unexpanded. For example, when examining output of the serde_derive generated code I would be like to not expand try! macro.

@elmarco
Copy link

elmarco commented Mar 19, 2021

I think #68 would be a more convenient solution (not filtering out, but rather specifying what you want expanded).

@dtolnay
Copy link
Owner

dtolnay commented Sep 2, 2021

Closing in favor of #68 since these are about effectively equivalent functionality.

@dtolnay dtolnay closed this as completed Sep 2, 2021
@Mingun
Copy link

Mingun commented Sep 2, 2021

@dtolnay , just do not forget about case with serde_derive: try! macro defined in the serde_derive generated code and I'd like to not expand it

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

4 participants