separate ItemDecorator from ItemDecorator
This commit is contained in:
parent
431ede40df
commit
93337f0daa
@ -33,7 +33,7 @@ pub struct MacroDef {
|
||||
ext: SyntaxExtension
|
||||
}
|
||||
|
||||
pub type ItemDecorator = @fn(@ExtCtxt,
|
||||
pub type ItemDecoratorFun = @fn(@ExtCtxt,
|
||||
Span,
|
||||
@ast::MetaItem,
|
||||
~[@ast::item])
|
||||
@ -62,7 +62,7 @@ pub enum MacResult {
|
||||
pub enum SyntaxExtension {
|
||||
|
||||
// #[auto_encode] and such
|
||||
ItemDecorator(ItemDecorator),
|
||||
ItemDecorator(ItemDecoratorFun),
|
||||
|
||||
// Token-tree expanders
|
||||
NormalTT(SyntaxExpanderTTFun, Option<Span>),
|
||||
|
Loading…
x
Reference in New Issue
Block a user