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

Flag to control how deeply macros are expanded #11

Open
dtolnay opened this Issue Feb 14, 2017 · 2 comments

Comments

2 participants
@dtolnay
Copy link
Owner

dtolnay commented Feb 14, 2017

For example, avoid expanding try! and other macros inside the output of proc macros.

cc @djc

@dtolnay dtolnay added the enhancement label Jul 2, 2018

@dpc

This comment has been minimized.

Copy link

dpc commented Dec 27, 2018

I'd like to request this to be an arbitrary level of macro expansion. I am particularly interested in 0.

For cargo-crev I had an idea that cargo-expand could be used for a one-file view of the source code for the purpose of quick code review. I'm mostly interested in mod file conversion to mod { ... }

@dtolnay dtolnay changed the title Flag to expand only one level of macros Flag to control how deeply macros are expanded Jan 15, 2019

@dtolnay

This comment has been minimized.

Copy link
Owner

dtolnay commented Jan 22, 2019

I posted a relevant request for implementation for 0 levels: dtolnay/request-for-implementation#6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment