Skip to content

Commit 53579e6

Browse files
committed
Deprecate ItemModifier in favor of MultiItemModifier
[breaking-change]
1 parent 474b324 commit 53579e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libsyntax/ext/base.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ impl<F> ItemDecorator for F
5151
}
5252
}
5353

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

64+
#[deprecated="Replaced by MultiItemModifier"]
6365
impl<F> ItemModifier for F
6466
where F : Fn(&mut ExtCtxt, Span, &ast::MetaItem, P<ast::Item>) -> P<ast::Item>
6567
{
68+
6669
fn expand(&self,
6770
ecx: &mut ExtCtxt,
6871
span: Span,

0 commit comments

Comments
 (0)