bring back #[derive(Show)] with a deprecation warning

This commit is contained in:
Jorge Aparicio 2015-01-28 12:43:16 -05:00
parent 4b75931ce2
commit a6f9180fd6

View file

@ -107,6 +107,14 @@ pub fn expand_meta_derive(cx: &mut ExtCtxt,
"Rand" => expand!(rand::expand_deriving_rand),
"Show" => {
cx.span_warn(titem.span,
"derive(Show) is deprecated \
in favor of derive(Debug)");
expand!(show::expand_deriving_show)
},
"Debug" => expand!(show::expand_deriving_show),
"Default" => expand!(default::expand_deriving_default),