Skip to content

Commit 6b64c27

Browse files
committed
---
yaml --- r: 208427 b: refs/heads/snap-stage3 c: 143f2db h: refs/heads/master i: 208425: 8eb4a39 208423: 939e6a9 v: v3
1 parent 6f4f582 commit 6b64c27

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 38a97becdf3e6a6157f6f7ec2d98ade8d8edc193
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 5af4df4a264ea3409189a3b64c12fcf6b6eee2c3
4+
refs/heads/snap-stage3: 143f2db3174103e459218958f567985b1f47944b
55
refs/heads/try: 7b4ef47b7805a402d756fb8157101f64880a522f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/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/snap-stage3/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)