Skip to content

Built-in derive macros Encodable, Decodable, RustcEncodable and RustcDecodable are stable #62048

Closed
@petrochenkov

Description

@petrochenkov

The macros produce paths like serialize::foo or rustc_serialize::foo and I suspect that the feature gating was supposed to happen when you write extern crate serialize to bring that serialize into scope.

However, you can easily write use anything as serialize, and rustc_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.

Metadata

Metadata

Assignees

Labels

A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)A-stabilityArea: `#[stable]`, `#[unstable]` etc.C-bugCategory: This is a bug.P-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions