We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Don't know what this does. Nominating.
The text was updated successfully, but these errors were encountered:
trace_macros just prints the arguments a macro is called with, for every expansion. e.g.
trace_macros
#[feature(macro_rules)]; macro_rules! macro { () => { println!("hello"); }; ($y:tt $($x:tt)*) => { macro!($($x)*) } } fn main() { trace_macros!(true); macro!(1 2 3 4) }
$ rustc trace_macros.rs macro! { 1 2 3 4 } macro! { 2 3 4 } macro! { 3 4 } macro! { 4 } macro! { } println! { "hello" }
(This isn't implying that it shouldn't be feature gated though.)
Sorry, something went wrong.
Accepted for 1.0, P-backcompat-lang. (same reasoning as #11630)
auto merge of #11842 : xales/rust/feature-gates, r=cmr
be974bf
Fixes #11631
b23fd08
Successfully merging a pull request may close this issue.
Don't know what this does. Nominating.
The text was updated successfully, but these errors were encountered: