Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRename #[deprecated] to #[rustc_deprecated] #29952
Conversation
rust-highfive
assigned
brson
Nov 20, 2015
This comment has been minimized.
This comment has been minimized.
|
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
|
It's not strictly necessary to do this - having two modes is exactly why we added |
This comment has been minimized.
This comment has been minimized.
|
Yeah I was also under the impression that we'd just change the meaning of |
This comment has been minimized.
This comment has been minimized.
|
I'd kind of prefer this, since the semantics of the staged_api deprecated and the public deprecated do not exactly match and will probably diverge more in the future. This'll help prevent people emulating what the std lib does and getting confused when it doesn't work in their own code. |
This comment has been minimized.
This comment has been minimized.
|
Yeah, this is in preparation of the public |
This comment has been minimized.
This comment has been minimized.
|
If we do this then let's remember to add validation that crates don't mix the two. @bors r+ |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Nov 23, 2015
This comment has been minimized.
This comment has been minimized.
bors
merged commit a613059
into
rust-lang:master
Nov 23, 2015
This comment has been minimized.
This comment has been minimized.
diafero
commented
Dec 1, 2015
I had a look at the RFC and the tracking issue, but was unable to find out what this statement is based on. Superficially, the two attributes seem very similar, even having the same arguments. What's the difference? |
This comment has been minimized.
This comment has been minimized.
|
One difference is that the rustc deprecation requires a stability attribute, and I suggested renaming |
petrochenkov commentedNov 20, 2015
Part of #29935
The deprecation lint is still called "deprecated", so people can continue using
#[allow(deprecated)]and similar things.