-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Attributes not documented in the Rust Reference #24406
Comments
Yeah, that section is mostly about documenting your own code, and these attributes cannot be used outside of the standard library. |
I didn't realize they were specific to the stdlib. That would explain why they didn't work when I tried them. What's the reason for limiting to the stdlib? It'd be a very useful feature in general. |
They're closely tied to release channels, which non-stdlib crates don't use. We agree it would be useful and want to make something, but haven't worked on a design yet. |
I have discovered a few attributes that are not documented in the Rust Reference:
cfg_attr
stable
unstable
deprecated
The ones relating to stability are also not mentioned in the Rust Book in the Documentation section.
The text was updated successfully, but these errors were encountered: