You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's mainly because /// foo is a separate token equivalent to #[doc="foo"] unlike comments (no token sent to the macro). Not sure if bitflags! can account for this, but it still highlights the limitation of the current macro parser.
kmcallister
changed the title
Comments Breaking
Filter doc comments from macro input
Oct 16, 2014
Possibly at odds with or duplicate of #14197
To be fixed in #17830
@lifthrasiir Perhaps the macro parser shouldn't be burdened with such details. #17830 starts expanding the DOC_COMMENT token into the equivalent sequence in tokentree reader.
This seems to be a very inconsistant issue, but I think it's related to macros.
Here's an example of a list of comments that don't get parsed properly:
This code will error saying "no rules expected the token
/// Test
".http://is.gd/Zkpgvd
The text was updated successfully, but these errors were encountered: