Skip to content

Commit

Permalink
remove deriving_eq, deriving_iter_bytes, deriving_clone (deprecated i…
Browse files Browse the repository at this point in the history
…n 0.6)
  • Loading branch information
Lenny222 committed May 15, 2013
1 parent d217174 commit 017df98
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 53 deletions.
9 changes: 0 additions & 9 deletions src/libsyntax/ext/base.rs
Expand Up @@ -148,15 +148,6 @@ pub fn syntax_expander_table() -> SyntaxEnv {
syntax_expanders.insert(@~"deriving",
@SE(ItemDecorator(
ext::deriving::expand_meta_deriving)));
syntax_expanders.insert(@~"deriving_eq",
@SE(ItemDecorator(
ext::deriving::eq::expand_deriving_obsolete)));
syntax_expanders.insert(@~"deriving_iter_bytes",
@SE(ItemDecorator(
ext::deriving::iter_bytes::expand_deriving_obsolete)));
syntax_expanders.insert(@~"deriving_clone",
@SE(ItemDecorator(
ext::deriving::clone::expand_deriving_obsolete)));

// Quasi-quoting expanders
syntax_expanders.insert(@~"quote_tokens",
Expand Down
9 changes: 0 additions & 9 deletions src/libsyntax/ext/deriving/clone.rs
Expand Up @@ -42,15 +42,6 @@ pub fn expand_deriving_clone(cx: @ext_ctxt,
&trait_def)
}

pub fn expand_deriving_obsolete(cx: @ext_ctxt,
span: span,
_mitem: @meta_item,
in_items: ~[@item])
-> ~[@item] {
cx.span_err(span, ~"`#[deriving_clone]` is obsolete; use `#[deriving(Clone)]` instead");
in_items
}

fn cs_clone(cx: @ext_ctxt, span: span,
substr: &Substructure) -> @expr {
let clone_ident = substr.method_ident;
Expand Down
8 changes: 0 additions & 8 deletions src/libsyntax/ext/deriving/cmp/eq.rs
Expand Up @@ -56,11 +56,3 @@ pub fn expand_deriving_eq(cx: @ext_ctxt,
expand_deriving_generic(cx, span, mitem, in_items,
&trait_def)
}

pub fn expand_deriving_obsolete(cx: @ext_ctxt,
span: span,
_mitem: @meta_item,
in_items: ~[@item]) -> ~[@item] {
cx.span_err(span, ~"`#[deriving_eq]` is obsolete; use `#[deriving(Eq)]` instead");
in_items
}
10 changes: 0 additions & 10 deletions src/libsyntax/ext/deriving/iter_bytes.rs
Expand Up @@ -41,16 +41,6 @@ pub fn expand_deriving_iter_bytes(cx: @ext_ctxt,
expand_deriving_generic(cx, span, mitem, in_items, &trait_def)
}

pub fn expand_deriving_obsolete(cx: @ext_ctxt,
span: span,
_mitem: @meta_item,
in_items: ~[@item])
-> ~[@item] {
cx.span_err(span, ~"`#[deriving_iter_bytes]` is obsolete; use `#[deriving(IterBytes)]` \
instead");
in_items
}

fn iter_bytes_substructure(cx: @ext_ctxt, span: span, substr: &Substructure) -> @expr {
let lsb0_f = match substr.nonself_args {
[l, f] => ~[l, f],
Expand Down
17 changes: 0 additions & 17 deletions src/test/compile-fail/deriving-obsolete.rs

This file was deleted.

5 comments on commit 017df98

@bors
Copy link
Contributor

@bors bors commented on 017df98 May 15, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 017df98 May 15, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging kud1ing/rust/cleanup = 017df98 into auto

@bors
Copy link
Contributor

@bors bors commented on 017df98 May 15, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kud1ing/rust/cleanup = 017df98 merged ok, testing candidate = 7012c42

@bors
Copy link
Contributor

@bors bors commented on 017df98 May 16, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 017df98 May 16, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding incoming to auto = 7012c42

Please sign in to comment.