Skip to content

Commit ebc3cbd

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 177405 b: refs/heads/tmp c: a6f9180 h: refs/heads/master i: 177403: 763bca0 v: v3
1 parent dac0a07 commit ebc3cbd

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 44a287e6eb22ec3c2a687fc156813577464017f7
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 4b75931ce24f2c7ccf6486e434c24c6df595f4bc
37+
refs/heads/tmp: a6f9180fd61f509ebc6d666eda3f6bb42dd02573

branches/tmp/src/libsyntax/ext/deriving/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ pub fn expand_meta_derive(cx: &mut ExtCtxt,
107107

108108
"Rand" => expand!(rand::expand_deriving_rand),
109109

110+
"Show" => {
111+
cx.span_warn(titem.span,
112+
"derive(Show) is deprecated \
113+
in favor of derive(Debug)");
114+
115+
expand!(show::expand_deriving_show)
116+
},
117+
110118
"Debug" => expand!(show::expand_deriving_show),
111119

112120
"Default" => expand!(default::expand_deriving_default),

0 commit comments

Comments
 (0)