@@ -29,7 +29,8 @@ use fold::Folder;
29
29
use std:: collections:: HashMap ;
30
30
use std:: rc:: Rc ;
31
31
32
- #[ deprecated="Replaced by MultiItemDecorator" ]
32
+ #[ unstable( feature = "rustc_private" ) ]
33
+ #[ deprecated( since = "1.0.0" , reason = "replaced by MultiItemDecorator" ) ]
33
34
pub trait ItemDecorator {
34
35
fn expand ( & self ,
35
36
ecx : & mut ExtCtxt ,
@@ -40,7 +41,8 @@ pub trait ItemDecorator {
40
41
}
41
42
42
43
#[ allow( deprecated) ]
43
- #[ deprecated="Replaced by MultiItemDecorator" ]
44
+ #[ unstable( feature = "rustc_private" ) ]
45
+ #[ deprecated( since = "1.0.0" , reason = "replaced by MultiItemDecorator" ) ]
44
46
impl < F > ItemDecorator for F
45
47
where F : Fn ( & mut ExtCtxt , Span , & ast:: MetaItem , & ast:: Item , Box < FnMut ( P < ast:: Item > ) > )
46
48
{
@@ -54,7 +56,8 @@ impl<F> ItemDecorator for F
54
56
}
55
57
}
56
58
57
- #[ deprecated="Replaced by MultiItemModifier" ]
59
+ #[ unstable( feature = "rustc_private" ) ]
60
+ #[ deprecated( since = "1.0.0" , reason = "replaced by MultiItemModifier" ) ]
58
61
pub trait ItemModifier {
59
62
fn expand ( & self ,
60
63
ecx : & mut ExtCtxt ,
@@ -65,7 +68,8 @@ pub trait ItemModifier {
65
68
}
66
69
67
70
#[ allow( deprecated) ]
68
- #[ deprecated="Replaced by MultiItemModifier" ]
71
+ #[ unstable( feature = "rustc_private" ) ]
72
+ #[ deprecated( since = "1.0.0" , reason = "replaced by MultiItemModifier" ) ]
69
73
impl < F > ItemModifier for F
70
74
where F : Fn ( & mut ExtCtxt , Span , & ast:: MetaItem , P < ast:: Item > ) -> P < ast:: Item >
71
75
{
@@ -423,7 +427,8 @@ impl MacResult for DummyResult {
423
427
pub enum SyntaxExtension {
424
428
/// A syntax extension that is attached to an item and creates new items
425
429
/// based upon it.
426
- #[ deprecated="Replaced by MultiDecorator" ]
430
+ #[ unstable( feature = "rustc_private" ) ]
431
+ #[ deprecated( since = "1.0.0" , reason = "replaced by MultiDecorator" ) ]
427
432
Decorator ( Box < ItemDecorator + ' static > ) ,
428
433
429
434
/// A syntax extension that is attached to an item and creates new items
@@ -434,7 +439,8 @@ pub enum SyntaxExtension {
434
439
435
440
/// A syntax extension that is attached to an item and modifies it
436
441
/// in-place.
437
- #[ deprecated="Replaced by MultiModifier" ]
442
+ #[ unstable( feature = "rustc_private" ) ]
443
+ #[ deprecated( since = "1.0.0" , reason = "replaced by MultiModifier" ) ]
438
444
Modifier ( Box < ItemModifier + ' static > ) ,
439
445
440
446
/// A syntax extension that is attached to an item and modifies it
@@ -504,7 +510,7 @@ fn initial_syntax_expander_table(ecfg: &expand::ExpansionConfig) -> SyntaxEnv {
504
510
syntax_expanders. insert ( intern ( "derive" ) ,
505
511
MultiDecorator ( box ext:: deriving:: expand_meta_derive) ) ;
506
512
syntax_expanders. insert ( intern ( "deriving" ) ,
507
- Decorator ( box ext:: deriving:: expand_deprecated_deriving) ) ;
513
+ MultiDecorator ( box ext:: deriving:: expand_deprecated_deriving) ) ;
508
514
509
515
if ecfg. enable_quotes {
510
516
// Quasi-quoting expanders
0 commit comments