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 upDeprecate rustc-serialize attribute #42449
Comments
brson
added
I-needs-decision
T-lang
labels
Jun 5, 2017
brson
changed the title
Deprecatet rustc-serialize attribute
Deprecate rustc-serialize attribute
Jun 5, 2017
This comment has been minimized.
This comment has been minimized.
|
Can this be don for 1.20? |
This comment has been minimized.
This comment has been minimized.
|
Do you mean the |
This comment has been minimized.
This comment has been minimized.
|
@eddyb Er yes that's what I mean. |
This comment has been minimized.
This comment has been minimized.
|
I believe on the implementation side technically https://github.com/rust-lang/rust/blob/master/src/libsyntax_ext/deriving/mod.rs#L119 is what needs to change, but it's worth noting that the Rust compiler itself rather extensively uses these attributes: ~430 of each excluding tests currently, I believe. Maybe it is too early to do this? Or perhaps these attributes are different in some way? |
This comment has been minimized.
This comment has been minimized.
|
If the traits from the crates.io library are deprecated instead of the derives, and rustc's copy of the library is left untouched, I believe the derives will trigger the deprecation warnings, but only for users of the crates.io library and Rust won't have a thousand errors while building. |
Mark-Simulacrum
added
the
C-tracking-issue
label
Jul 27, 2017
This comment has been minimized.
This comment has been minimized.
Geemili
commented
Jan 27, 2018
|
Is this still an issue? |
This comment has been minimized.
This comment has been minimized.
|
Closing in favor of rust-lang-deprecated/rustc-serialize#193. |
brson commentedJun 5, 2017
AFAIK the attribute itself is still undeprecated. Just filing an issue to track it.