Skip to content

Commit 323cd38

Browse files
committed
---
yaml --- r: 217016 b: refs/heads/stable c: 143f2db h: refs/heads/master v: v3
1 parent dd37a5a commit 323cd38

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ refs/heads/tmp: 378a370ff2057afeb1eae86eb6e78c476866a4a6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: a5286998df566e736b32f6795bfc3803bdaf453d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 5af4df4a264ea3409189a3b64c12fcf6b6eee2c3
32+
refs/heads/stable: 143f2db3174103e459218958f567985b1f47944b
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375

branches/stable/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

branches/stable/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)