diff options
Diffstat (limited to 'src/libsyntax/ext/base.rs')
| -rw-r--r-- | src/libsyntax/ext/base.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index edd66b50286..7d802d953b3 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -420,9 +420,13 @@ impl MacResult for DummyResult { pub enum SyntaxExtension { /// A syntax extension that is attached to an item and creates new items /// based upon it. + Decorator(Box<ItemDecorator + 'static>), + + /// A syntax extension that is attached to an item and creates new items + /// based upon it. /// /// `#[derive(...)]` is an `ItemDecorator`. - Decorator(Box<ItemDecorator + 'static>), + MultiDecorator(Box<MultiItemDecorator + 'static>), /// A syntax extension that is attached to an item and modifies it /// in-place. |
