diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-18 11:54:06 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-18 19:46:25 -0700 |
| commit | f945190e6352a1bc965a117569532643319b400f (patch) | |
| tree | bc13fc26dac174f9169dec2ccb6ff812dccf86c2 /src/libsyntax/ext | |
| parent | 46f649c479ce40f3b4590590dda6c2895e8d60f6 (diff) | |
| download | rust-f945190e6352a1bc965a117569532643319b400f.tar.gz rust-f945190e6352a1bc965a117569532643319b400f.zip | |
rustc: Remove some long deprecated features:
* no_split_stack was renamed to no_stack_check * deriving was renamed to derive * `use foo::mod` was renamed to `use foo::self`; * legacy lifetime definitions in closures have been replaced with `for` syntax * `fn foo() -> &A + B` has been deprecated for some time (needs parens) * Obsolete `for Sized?` syntax * Obsolete `Sized? Foo` syntax * Obsolete `|T| -> U` syntax
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/deriving/mod.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/libsyntax/ext/deriving/mod.rs b/src/libsyntax/ext/deriving/mod.rs index 2631c28cf2f..d8c50b5a094 100644 --- a/src/libsyntax/ext/deriving/mod.rs +++ b/src/libsyntax/ext/deriving/mod.rs @@ -78,14 +78,6 @@ pub mod totalord; pub mod generic; -fn expand_deprecated_deriving(cx: &mut ExtCtxt, - span: Span, - _: &MetaItem, - _: &Item, - _: &mut FnMut(P<Item>)) { - cx.span_err(span, "`deriving` has been renamed to `derive`"); -} - fn expand_derive(cx: &mut ExtCtxt, _: Span, mitem: &MetaItem, @@ -151,8 +143,6 @@ macro_rules! derive_traits { env.insert(intern("derive"), Modifier(Box::new(expand_derive))); - env.insert(intern("deriving"), - Decorator(Box::new(expand_deprecated_deriving))); } fn is_builtin_trait(name: &str) -> bool { |
