Skip to content

Commit f5bb334

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 177835 b: refs/heads/snap-stage3 c: a6f9180 h: refs/heads/master i: 177833: 4d5bf21 177831: 2fb949b v: v3
1 parent d58331e commit f5bb334

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 474b324eda10440d6568ef872a7307d38e7de95b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 4b75931ce24f2c7ccf6486e434c24c6df595f4bc
4+
refs/heads/snap-stage3: a6f9180fd61f509ebc6d666eda3f6bb42dd02573
55
refs/heads/try: fde4472848b662a4d1236388c4cf15e2450237e6
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/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)