Deprecate ItemModifier in favor of MultiItemModifier

[breaking-change]
This commit is contained in:
Adolfo Ochagavía
2015-01-16 22:47:05 +01:00
parent 474b324eda
commit 53579e6d86

View File

@@ -51,6 +51,7 @@ impl<F> ItemDecorator for F
} }
} }
#[deprecated="Replaced by MultiItemModifier"]
pub trait ItemModifier { pub trait ItemModifier {
fn expand(&self, fn expand(&self,
ecx: &mut ExtCtxt, ecx: &mut ExtCtxt,
@@ -60,9 +61,11 @@ pub trait ItemModifier {
-> P<ast::Item>; -> P<ast::Item>;
} }
#[deprecated="Replaced by MultiItemModifier"]
impl<F> ItemModifier for F impl<F> ItemModifier for F
where F : Fn(&mut ExtCtxt, Span, &ast::MetaItem, P<ast::Item>) -> P<ast::Item> where F : Fn(&mut ExtCtxt, Span, &ast::MetaItem, P<ast::Item>) -> P<ast::Item>
{ {
fn expand(&self, fn expand(&self,
ecx: &mut ExtCtxt, ecx: &mut ExtCtxt,
span: Span, span: Span,