diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2016-10-11 17:19:51 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2016-10-27 11:44:42 +1300 |
| commit | b7675cf04ad1c65e86f51feddc3451b46a768d6b (patch) | |
| tree | f0f7192b6f00550160eb621fc692618b5451f1ce /src/libsyntax_ext | |
| parent | d1b08b136c47c37cce91d65dc58f375af0d085e1 (diff) | |
| download | rust-b7675cf04ad1c65e86f51feddc3451b46a768d6b.tar.gz rust-b7675cf04ad1c65e86f51feddc3451b46a768d6b.zip | |
Deprecate custom_derive
Has a custom deprecation since deprecating features is not supported and is a pain to implement
Diffstat (limited to 'src/libsyntax_ext')
| -rw-r--r-- | src/libsyntax_ext/deriving/mod.rs | 1 |
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..ca07a9267fa 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, 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)); |
