mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-04 03:45:10 +00:00
bring back #[derive(Show)]
with a deprecation warning
This commit is contained in:
parent
4b75931ce2
commit
a6f9180fd6
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user