From 9322332140fe934ece4476ade531009b2f71f033 Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Wed, 12 Oct 2016 08:38:35 +1300 Subject: deprecation message for custom derive --- src/libsyntax_ext/deriving/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax_ext') diff --git a/src/libsyntax_ext/deriving/mod.rs b/src/libsyntax_ext/deriving/mod.rs index ca07a9267fa..67747173353 100644 --- a/src/libsyntax_ext/deriving/mod.rs +++ b/src/libsyntax_ext/deriving/mod.rs @@ -175,7 +175,7 @@ pub fn expand_derive(cx: &mut ExtCtxt, feature_gate::GateIssue::Language, feature_gate::EXPLAIN_CUSTOM_DERIVE); } else { - cx.span_warn(titem.span, EXPLAIN_DEPR_CUSTOM_DERIVE); + 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)); -- cgit 1.4.1-3-g733a5