Skip to content
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

Closed
jimmycuadra opened this issue Apr 14, 2015 · 3 comments
Closed

Attributes not documented in the Rust Reference #24406

jimmycuadra opened this issue Apr 14, 2015 · 3 comments

Comments

@jimmycuadra
Copy link
Contributor

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.

@steveklabnik
Copy link
Member

The ones relating to stability are also not mentioned in the Rust Book in the Documentation section.

Yeah, that section is mostly about documenting your own code, and these attributes cannot be used outside of the standard library.

@jimmycuadra
Copy link
Contributor Author

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.

@steveklabnik
Copy link
Member

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.

GuillaumeGomez pushed a commit to GuillaumeGomez/rust that referenced this issue Apr 17, 2015
dlrobertson pushed a commit to dlrobertson/rust that referenced this issue Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants