We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
macro_rules!
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
Minimal reproducer:
mod ok { mod ok { const _: &'static str = stringify!(Foo: !Bar); } } macro_rules! ok_2 { () => { const _: i32 = !1; }; } ok_2!(); macro_rules! fail_dedented { () => { const _: &'static str = stringify!(Foo: !Bar); }; } fail_dedented!(); macro_rules! fail_dedented_nonidempotent { () => { const _: () = assert!(stringify!(Foo: !Bar).len() > 0, concat!(stringify!(Foo: !Bar), "Lorem ipsum dolor sit amet, consectetur adipiscing elit")); }; } fail_dedented_nonidempotent!(); macro_rules! fail_dedented_nonidempotent_2 { () => { const _: () = assert!(stringify!(Foo: !Bar).len() > 0, concat!(stringify!(Foo: !Bar), "Lorem ipsum dolor sit amet, consectetur adipiscing elit")); }; } fail_dedented_nonidempotent_2!();
formats to
mod ok { mod ok { const _: &'static str = stringify!(Foo: !Bar); } } macro_rules! ok_2 { () => { const _: i32 = !1; }; } ok_2!(); macro_rules! fail_dedented { () => { const _: &'static str = stringify!(Foo: !Bar); }; } fail_dedented!(); macro_rules! fail_dedented_nonidempotent { () => { const _: () = assert!( stringify!(Foo: !Bar).len() > 0, concat!( stringify!(Foo: !Bar), "Lorem ipsum dolor sit amet, consectetur adipiscing elit" ) ); }; } fail_dedented_nonidempotent!(); macro_rules! fail_dedented_nonidempotent_2 { () => { const _: () = assert!( stringify!(Foo: !Bar).len() > 0, concat!( stringify!(Foo: !Bar), "Lorem ipsum dolor sit amet, consectetur adipiscing elit" ) ); }; } fail_dedented_nonidempotent_2!();
The text was updated successfully, but these errors were encountered:
Not fixed by 0097a90 (PR #5473).
Sorry, something went wrong.
Thanks for reaching out. I'll see if I can look into this later to determine what's going on here
No branches or pull requests
Minimal reproducer:
formats to
formats to
The text was updated successfully, but these errors were encountered: