-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
rustdoc doesn't handle #![feature] attributes #55938
Comments
It would actually be neat if |
I think this is broken as of stable 1.41 (haven't double checked version exactly), which is a regression. It broke my CI on stable... It is a little annoying to work around. You must not use a cargo feature to turn this on, lest @yandros posted a workaround for avoiding enabling with a feature on the user forum. |
Further breakage comes with |
This was fixed at some point, stable now correctly gives an error:
|
This seems useful - could you open a separate issue for it? |
With the following crate:
Attempting to build it on stable will fail as expected, but generating docs will pass, no problem:
The output docs also happily use the feature in question:
I would expect rustdoc to also choke on the
#![feature]
attribute, but it turns out that it doesn't. This is probably not an issue in practice, but this doesn't seem intended?The text was updated successfully, but these errors were encountered: