File tree 1 file changed +22
-2
lines changed
src/libsyntax/ext/deriving
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,
70
70
71
71
"Hash" => expand ! ( hash:: expand_deriving_hash) ,
72
72
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
+ }
75
95
76
96
"PartialEq" => expand ! ( eq:: expand_deriving_eq) ,
77
97
"Eq" => expand ! ( totaleq:: expand_deriving_totaleq) ,
You can’t perform that action at this time.
0 commit comments