Deprecate ItemModifier in favor of MultiItemModifier
[breaking-change]
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user