-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Deprecated ignored if since
> rust version and has patch
#57952
Comments
Version numbers are according to semantic versioning, in which there must be three components. |
If you add |
I think that part is only supposed to be used by libstd and not by user crates. All of these examples should warn by default. (it doesn't really make sense to deprecate things in a crate based on the Rust version) |
Ah, that's true. Maybe it does make more sense to always warn in this case. |
Exactly. My understanding from the docs for the deprecation attribute is that Sorry for not being clear enough originally - the problem was I was troubleshooting why a I will update the description |
…r=GuillaumeGomez Ignore future deprecations in #[deprecated] The future deprecation warnings should only apply to `#[rustc_deprecated]` as they take into account rustc's version. Fixes rust-lang#57952. I've also slightly modified rustdoc's display of future deprecation notices to make it more consistent, so I'm assigning a rustdoc team member for review to make sure this is okay. r? @GuillaumeGomez
…r=GuillaumeGomez Ignore future deprecations in #[deprecated] The future deprecation warnings should only apply to `#[rustc_deprecated]` as they take into account rustc's version. Fixes rust-lang#57952. I've also slightly modified rustdoc's display of future deprecation notices to make it more consistent, so I'm assigning a rustdoc team member for review to make sure this is okay. r? @GuillaumeGomez
…r=GuillaumeGomez Ignore future deprecations in #[deprecated] The future deprecation warnings should only apply to `#[rustc_deprecated]` as they take into account rustc's version. Fixes rust-lang#57952. I've also slightly modified rustdoc's display of future deprecation notices to make it more consistent, so I'm assigning a rustdoc team member for review to make sure this is okay. r? @GuillaumeGomez
When
since
> version ofrustc
and patch is in the version then deprecated is ignored:My expectation is that:
since
is referring to the version of my crate, not the rustc version.(Playground)
The docs say:
The text was updated successfully, but these errors were encountered: