-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
MBE template parsing fails with ///
#7423
Comments
///
///
This part in rustc is quite ambitious : This one works: macro_rules! m{
{{
#[doc=r"abcde"]
}
} => { }
}
m!({/**abcde*/});
fn main() {} This one doesn't works: macro_rules! m{
{{
/**abcde*/
}
} => { }
}
m!({/**abcde*/});
fn main() {} This one works: macro_rules! m{
{{
/***/
}
} => { }
}
m!({/***/});
fn main() {} This one doesn't work: macro_rules! m{
{{
///
}
} => { }
}
m!({
///
});
fn main() {} (ノಠ益ಠ)ノ彡┻━┻ |
Might be worth asking in |
The second branch couldn't be matched because of the "NEON" and the comma.
Yes, we desugar all doc comment in mbe included empty one, and that's why we failed because we expect a doc comment in macro invocation. |
This one doesn't work: I did guess that rustc doesn't desugar |
Adapted from
ring
.The text was updated successfully, but these errors were encountered: