-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
regression processing c-style doc comments in proc macros between 1.46 and 1.47 #80545
Comments
I tested and this doesn't affect rustdoc, which strips |
Assigning |
I think this was caused by #74627 . The new behavior may be intentional - @petrochenkov |
Can confirm that it does indeed bisect to #74627 (or maybe #73842 ). cargo-bisect-rustc output
Narrowing this to a specific commit is somewhat challenging today, 4 years later (specifically I'm having trouble building the old llvm). @rustbot labels: -E-needs-bisection |
Closing as an intentional change. |
When a proc macro is applied to an item that has an associated c-style doc comment the contents of the
TokenStream
changed between 1.46 and 1.47. In particular the surrounding*
and newlines were previously elided (mostly), but as of 1.47 they are not.Code
Here's a little repo I put together to demonstrate and reproduce the issue: https://github.com/ahl/cdoc_regression. It contains a proc macro that looks like this:
Here's the output:
In both cases, the first multiline comment is for a
///
-style comment and the second is for a/**
-style comment.Version it worked on
Version with regression
The text was updated successfully, but these errors were encountered: