Skip to content

Commit 6f233aa

Browse files
committed
Deprecate SyntaxExtension::Decorator
It has been replaced by SyntaxExtension::MultiDecorator [breaking-change]
1 parent f97cff9 commit 6f233aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libsyntax/ext/base.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ impl MacResult for DummyResult {
420420
pub enum SyntaxExtension {
421421
/// A syntax extension that is attached to an item and creates new items
422422
/// based upon it.
423+
#[deprecated="Replaced by MultiDecorator"]
423424
Decorator(Box<ItemDecorator + 'static>),
424425

425426
/// A syntax extension that is attached to an item and creates new items

0 commit comments

Comments
 (0)