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 upTracking issue for `#[deprecated]` #29935
Comments
alexcrichton
added
the
B-RFC-approved
label
Nov 19, 2015
This comment has been minimized.
This comment has been minimized.
|
So should we
|
This comment has been minimized.
This comment has been minimized.
|
Renaming may help ensure there's no accidental contamination of the stable one with any new features in the internal one. |
This comment has been minimized.
This comment has been minimized.
|
OK, I'll see if I find the time to whip up a PR to rename |
This comment has been minimized.
This comment has been minimized.
I'll go ahead and do it right now if you do not mind. |
This comment has been minimized.
This comment has been minimized.
|
Fine with me. |
petrochenkov
referenced this issue
Nov 20, 2015
Merged
Rename #[deprecated] to #[rustc_deprecated] #29952
bors
added a commit
that referenced
this issue
Nov 23, 2015
petrochenkov
referenced this issue
Dec 4, 2015
Merged
Implement `#[deprecated]` attribute (RFC 1270) #30206
bors
added a commit
that referenced
this issue
Dec 16, 2015
bors
closed this
in
#30206
Dec 16, 2015
This comment has been minimized.
This comment has been minimized.
|
I am reopening this as the tracking issue should be open until it's stable. |
bluss
reopened this
Feb 8, 2016
bluss
added
the
B-unstable
label
Feb 8, 2016
bluss
changed the title
Allow `#[deprecated]` outside of `#[staged_api]`
Tracking issue for `#[deprecated]`
Feb 8, 2016
This comment has been minimized.
This comment has been minimized.
|
Oh, by the way, |
alexcrichton
added
T-libs
and removed
B-RFC-approved
labels
Feb 18, 2016
sfackler
added
the
I-nominated
label
Mar 2, 2016
This comment has been minimized.
This comment has been minimized.
|
A question to consider as part of FCP is that you can't selectively allow deprecations, only blanket allow deprecations. This is somewhat unfortunate as you frequently just want to allow usage of one deprecated API, but not necessarily all. |
alexcrichton
added
final-comment-period
and removed
I-nominated
labels
Mar 11, 2016
This comment has been minimized.
This comment has been minimized.
|
@alexcrichton When attributes on statements and expression are stable (and the current |
This comment has been minimized.
This comment has been minimized.
|
@jonas-schievink indeed! One problem with that though is if I have widespread usage of one API in my program I'd have to tag lots of places as An example is that in the past Cargo was trying to support super old Rust versions, and one notable part of that was the deprecation of |
This comment has been minimized.
This comment has been minimized.
|
One partial solution is to write a non-deprecated wrapper around the deprecated API and redact usage to use the wrapper. Of course this is tedious. |
This comment has been minimized.
This comment has been minimized.
Easy targeted (For that reason, maybe we want to deprecate |
This comment has been minimized.
This comment has been minimized.
|
I've only had to put allow(deprecated) on |
This comment has been minimized.
This comment has been minimized.
jan-hudec
commented
Apr 6, 2016
|
Actually I would consider a better option to normally keep the warnings, but report each deprecated symbol only once. That would make it short enough to notice any new warnings while keeping it up as a reminder that something needs to be done about it. |
This comment has been minimized.
This comment has been minimized.
|
isn't that already the case? |
alexcrichton commentedNov 19, 2015
Tracking issue for rust-lang/rfcs#1270