Skip to content

Commit 143f2db

Browse files
committed
Fix rebase issues
1 parent 5af4df4 commit 143f2db

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

src/libsyntax/ext/base.rs

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ use fold::Folder;
2929
use std::collections::HashMap;
3030
use std::rc::Rc;
3131

32-
#[deprecated="Replaced by MultiItemDecorator"]
32+
#[unstable(feature = "rustc_private")]
33+
#[deprecated(since = "1.0.0", reason = "replaced by MultiItemDecorator")]
3334
pub trait ItemDecorator {
3435
fn expand(&self,
3536
ecx: &mut ExtCtxt,
@@ -40,7 +41,8 @@ pub trait ItemDecorator {
4041
}
4142

4243
#[allow(deprecated)]
43-
#[deprecated="Replaced by MultiItemDecorator"]
44+
#[unstable(feature = "rustc_private")]
45+
#[deprecated(since = "1.0.0", reason = "replaced by MultiItemDecorator")]
4446
impl<F> ItemDecorator for F
4547
where F : Fn(&mut ExtCtxt, Span, &ast::MetaItem, &ast::Item, Box<FnMut(P<ast::Item>)>)
4648
{
@@ -54,7 +56,8 @@ impl<F> ItemDecorator for F
5456
}
5557
}
5658

57-
#[deprecated="Replaced by MultiItemModifier"]
59+
#[unstable(feature = "rustc_private")]
60+
#[deprecated(since = "1.0.0", reason = "replaced by MultiItemModifier")]
5861
pub trait ItemModifier {
5962
fn expand(&self,
6063
ecx: &mut ExtCtxt,
@@ -65,7 +68,8 @@ pub trait ItemModifier {
6568
}
6669

6770
#[allow(deprecated)]
68-
#[deprecated="Replaced by MultiItemModifier"]
71+
#[unstable(feature = "rustc_private")]
72+
#[deprecated(since = "1.0.0", reason = "replaced by MultiItemModifier")]
6973
impl<F> ItemModifier for F
7074
where F : Fn(&mut ExtCtxt, Span, &ast::MetaItem, P<ast::Item>) -> P<ast::Item>
7175
{
@@ -423,7 +427,8 @@ impl MacResult for DummyResult {
423427
pub enum SyntaxExtension {
424428
/// A syntax extension that is attached to an item and creates new items
425429
/// based upon it.
426-
#[deprecated="Replaced by MultiDecorator"]
430+
#[unstable(feature = "rustc_private")]
431+
#[deprecated(since = "1.0.0", reason = "replaced by MultiDecorator")]
427432
Decorator(Box<ItemDecorator + 'static>),
428433

429434
/// A syntax extension that is attached to an item and creates new items
@@ -434,7 +439,8 @@ pub enum SyntaxExtension {
434439

435440
/// A syntax extension that is attached to an item and modifies it
436441
/// in-place.
437-
#[deprecated="Replaced by MultiModifier"]
442+
#[unstable(feature = "rustc_private")]
443+
#[deprecated(since = "1.0.0", reason = "replaced by MultiModifier")]
438444
Modifier(Box<ItemModifier + 'static>),
439445

440446
/// 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 {
504510
syntax_expanders.insert(intern("derive"),
505511
MultiDecorator(box ext::deriving::expand_meta_derive));
506512
syntax_expanders.insert(intern("deriving"),
507-
Decorator(box ext::deriving::expand_deprecated_deriving));
513+
MultiDecorator(box ext::deriving::expand_deprecated_deriving));
508514

509515
if ecfg.enable_quotes {
510516
// Quasi-quoting expanders

src/libsyntax/ext/deriving/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ pub mod generic;
4242
pub fn expand_deprecated_deriving(cx: &mut ExtCtxt,
4343
span: Span,
4444
_: &MetaItem,
45-
_: &Item,
46-
_: Box<FnMut(P<Item>)>) {
45+
_: &Annotatable,
46+
_: Box<FnMut(Annotatable)>) {
4747
cx.span_err(span, "`deriving` has been renamed to `derive`");
4848
}
4949

0 commit comments

Comments
 (0)