-
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
Add support for #[deprecated] attribute #723
Comments
I was just thinking this would be a good idea. Would there also be a way to mark entire modules as deprecated? |
Yes. It should also take arguments that explain the deprecation and/or point to a symbol to use instead. |
I think this is unblocked and we do write attributes to item metadata now. |
It'd be great if tagged items would also show up in generated documentation. D does a great job of this, highlighting the feature in red, giving a date on which the item will be dropped and pointing to an alternative item that should be used instead.
This kind of metadata could even show up in the warning at compile time. It'd be very useful for quickly updating old code. |
Also need to update the reference manual. |
Not critical for 0.6; de-milestoning |
(also, from looking at #4643, it sounds like this feature was backed out; not sure if that issue needs to be reopened.) |
nominating for backwards compatible. not strictly needed but seems like it'd be helpful. |
cc #6508 |
accepted for backwards-compatible milestone |
This would be very useful for cleaning up |
Per #6875 I want support for at least |
Once the attributes are supported, it will be easy to use with rustdoc_ng |
Add SEEK_DATA and SEEK_HOLE constants to FreeBSD and DragonFlyBSD They can be found [here](https://github.com/DragonFlyBSD/DragonFlyBSD/blob/725edadf86d63f56a584adf23265845c8590d734/sys/sys/unistd.h#L126) for DragonFlyBSD and [here](https://github.com/freebsd/freebsd/blob/f5d95e1f8d32db4ccccfd5ad9cecb21ed07a695d/sys/sys/unistd.h) for FreeBSD.
Minor never type additions.
Usage of items tagged with
#[deprecated]
should generate a warning at compile time. To make this really work correctly we'll need to write item attributes to the crate metadata.The text was updated successfully, but these errors were encountered: