about summary refs log tree commit diff
path: root/src/libsyntax_ext
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-10-27 00:51:58 -0700
committerGitHub <noreply@github.com>2016-10-27 00:51:58 -0700
commit46d39f3329487115e7d7dcd37bc64eea6ef9ba4e (patch)
treec3081261a6e717d58bda4b1c04b958c8c1d31713 /src/libsyntax_ext
parentbc283c9487b4607d0a97635dca8c8812b886047b (diff)
parent8c4a39cd951347b3060b07d2eb6a4ce225c44a8d (diff)
downloadrust-46d39f3329487115e7d7dcd37bc64eea6ef9ba4e.tar.gz
rust-46d39f3329487115e7d7dcd37bc64eea6ef9ba4e.zip
Auto merge of #37128 - nrc:depr-attr, r=@alexcrichton
Deprecate no_debug and custom_derive

r? @nikomatsakis
Diffstat (limited to 'src/libsyntax_ext')
-rw-r--r--src/libsyntax_ext/deriving/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax_ext/deriving/mod.rs b/src/libsyntax_ext/deriving/mod.rs
index 07401d59a15..67747173353 100644
--- a/src/libsyntax_ext/deriving/mod.rs
+++ b/src/libsyntax_ext/deriving/mod.rs
@@ -175,6 +175,7 @@ pub fn expand_derive(cx: &mut ExtCtxt,
                                            feature_gate::GateIssue::Language,
                                            feature_gate::EXPLAIN_CUSTOM_DERIVE);
         } else {
+            cx.span_warn(titem.span, feature_gate::EXPLAIN_DEPR_CUSTOM_DERIVE);
             let name = intern_and_get_ident(&format!("derive_{}", tname));
             let mitem = cx.meta_word(titem.span, name);
             new_attributes.push(cx.attribute(mitem.span, mitem));