Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Deprecate ItemModifier in favor of MultiItemModifier
[breaking-change]
  • Loading branch information
aochagavia committed Jan 31, 2015
1 parent 474b324 commit 53579e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libsyntax/ext/base.rs
Expand Up @@ -51,6 +51,7 @@ impl<F> ItemDecorator for F
}
}

#[deprecated="Replaced by MultiItemModifier"]
pub trait ItemModifier {
fn expand(&self,
ecx: &mut ExtCtxt,
Expand All @@ -60,9 +61,11 @@ pub trait ItemModifier {
-> P<ast::Item>;
}

#[deprecated="Replaced by MultiItemModifier"]
impl<F> ItemModifier for F
where F : Fn(&mut ExtCtxt, Span, &ast::MetaItem, P<ast::Item>) -> P<ast::Item>
{

fn expand(&self,
ecx: &mut ExtCtxt,
span: Span,
Expand Down

0 comments on commit 53579e6

Please sign in to comment.