-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Built-in derive macros Encodable
, Decodable
, RustcEncodable
and RustcDecodable
are stable
#62048
Labels
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
A-stability
Area: `#[stable]`, `#[unstable]` etc.
C-bug
Category: This is a bug.
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
jonas-schievink
added
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
A-stability
Area: `#[stable]`, `#[unstable]` etc.
C-bug
Category: This is a bug.
I-nominated
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
and removed
I-nominated
labels
Jun 22, 2019
The |
pre-triage: P-medium. removing nomination. @petrochenkov : do you want to be assigned to this? Or are you just sending out a general alert, but do not plan to fix it? |
PR for crater - #62507. |
Centril
added a commit
to Centril/rust
that referenced
this issue
Jul 29, 2019
Remove derives `Encodable`/`Decodable` and unstabilize attribute `#[bench]` `Encodable` and `Decodable` were deprecated before 1.0 and emitted an unsuppressable warning all this time. `#[bench]` is a part of the custom test framework feature and cannot be used meaningfully on stable, only as `cfg(false)`. Crater results can be found in rust-lang#62507 (comment) and below. This PR also reroutes the tracking issue for `feature(test)` from rust-lang#27812 (compiler internals) to rust-lang#50297 (custom test frameworks). Closes rust-lang#62048
bors
added a commit
that referenced
this issue
Aug 1, 2019
Remove derives `Encodable`/`Decodable` and unstabilize attribute `#[bench]` `Encodable` and `Decodable` were deprecated before 1.0 and emitted an unsuppressable warning all this time. `#[bench]` is a part of the custom test framework feature and cannot be used meaningfully on stable, only as `cfg(false)`. Crater results can be found in #62507 (comment) and below. This PR also reroutes the tracking issue for `feature(test)` from #27812 (compiler internals) to #50297 (custom test frameworks). Closes #62048
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
A-stability
Area: `#[stable]`, `#[unstable]` etc.
C-bug
Category: This is a bug.
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The macros produce paths like
serialize::foo
orrustc_serialize::foo
and I suspect that the feature gating was supposed to happen when you writeextern crate serialize
to bring thatserialize
into scope.However, you can easily write
use anything as serialize
, andrustc_serialize
is a stable crate on crates.io, so this kind of feature gating doesn't work.After #62042 lands we should try to un-stabilize them and test it with crater.
The text was updated successfully, but these errors were encountered: