File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed
src/libsyntax/ext/deriving Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -70,8 +70,28 @@ pub fn expand_meta_deriving(cx: &mut ExtCtxt,
7070
7171 "Hash" => expand ! ( hash:: expand_deriving_hash) ,
7272
73- "Encodable" => expand ! ( encodable:: expand_deriving_encodable) ,
74- "Decodable" => expand ! ( decodable:: expand_deriving_decodable) ,
73+ "RustcEncodable" => {
74+ expand ! ( encodable:: expand_deriving_encodable)
75+ }
76+ "RustcDecodable" => {
77+ expand ! ( decodable:: expand_deriving_decodable)
78+ }
79+ "Encodable" => {
80+ // NOTE: uncomment after a stage0 snap
81+ // cx.span_warn(titem.span,
82+ // "deriving(Encodable) is deprecated \
83+ // in favor of deriving(RustcEncodable)");
84+
85+ expand ! ( encodable:: expand_deriving_encodable)
86+ }
87+ "Decodable" =>
88+ // NOTE: uncomment after a stage0 snap
89+ // cx.span_warn(titem.span,
90+ // "deriving(Decodable) is deprecated \
91+ // in favor of deriving(RustcDecodable)");
92+
93+ expand ! ( decodable:: expand_deriving_decodable)
94+ }
7595
7696 "PartialEq" => expand ! ( eq:: expand_deriving_eq) ,
7797 "Eq" => expand ! ( totaleq:: expand_deriving_totaleq) ,
You can’t perform that action at this time.
0 commit comments