Skip to content

Commit 7d0a613

Browse files
committed
auto merge of #15776 : alexcrichton/rust/snapshots, r=huonw
2 parents 56fafe2 + 707cf47 commit 7d0a613

File tree

6 files changed

+17
-95
lines changed

6 files changed

+17
-95
lines changed

src/librustc_back/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
//! one that doesn't; the one that doesn't might get decent parallel
2222
//! build speedups.
2323
24-
#![crate_id = "rustc_back#0.11.0-pre"]
2524
#![crate_name = "rustc_back"]
2625
#![experimental]
2726
#![comment = "The Rust compiler minimal-dependency dumping-ground"]
@@ -33,7 +32,6 @@
3332
html_root_url = "http://doc.rust-lang.org/")]
3433

3534
#![feature(globs, phase, macro_rules)]
36-
#![allow(unused_attribute)] // NOTE: remove after stage0
3735

3836
#[phase(plugin, link)]
3937
extern crate log;

src/librustc_llvm/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#![allow(non_snake_case_functions)]
1414
#![allow(dead_code)]
1515

16-
#![crate_id = "rustc_llvm#0.11.0"]
1716
#![crate_name = "rustc_llvm"]
1817
#![experimental]
1918
#![license = "MIT/ASL2"]
@@ -25,7 +24,6 @@
2524

2625
#![feature(globs)]
2726
#![feature(link_args)]
28-
#![allow(unused_attribute)] // NOTE: remove after stage0
2927

3028
extern crate libc;
3129

src/libsyntax/ast_util.rs

+9-64
Original file line numberDiff line numberDiff line change
@@ -766,30 +766,6 @@ pub trait PostExpansionMethod {
766766
fn pe_vis(&self) -> ast::Visibility;
767767
}
768768

769-
770-
/// can't use the standard cfg(stage0) tricks here, because the error occurs in
771-
/// parsing, before cfg gets a chance to save the day. (yes, interleaved parsing
772-
/// / expansion / configuring would solve this problem...)
773-
774-
// NOTE: remove after next snapshot
775-
/// to be more specific: after a snapshot, swap out the "PRE" stuff, and
776-
// swap in the "POST" stuff.
777-
778-
/// PRE
779-
macro_rules! mf_method_body{
780-
($slf:ident, $field_pat:pat, $result:ident) => {
781-
match $slf.node {
782-
$field_pat => $result,
783-
MethMac(_) => {
784-
fail!("expected an AST without macro invocations");
785-
}
786-
}
787-
}
788-
}
789-
790-
/// POST
791-
/*
792-
#[cfg(not(stage0))]
793769
macro_rules! mf_method{
794770
($meth_name:ident, $field_ty:ty, $field_pat:pat, $result:ident) => {
795771
fn $meth_name<'a>(&'a self) -> $field_ty {
@@ -801,52 +777,21 @@ macro_rules! mf_method{
801777
}
802778
}
803779
}
804-
}*/
805-
806-
807-
// PRE
808-
impl PostExpansionMethod for Method {
809-
fn pe_ident(&self) -> ast::Ident {
810-
mf_method_body!(self, MethDecl(ident,_,_,_,_,_,_,_),ident)
811-
}
812-
fn pe_generics<'a>(&'a self) -> &'a ast::Generics {
813-
mf_method_body!(self, MethDecl(_,ref generics,_,_,_,_,_,_),generics)
814-
}
815-
fn pe_abi(&self) -> Abi {
816-
mf_method_body!(self, MethDecl(_,_,abi,_,_,_,_,_),abi)
817-
}
818-
fn pe_explicit_self<'a>(&'a self) -> &'a ast::ExplicitSelf {
819-
mf_method_body!(self, MethDecl(_,_,_,ref explicit_self,_,_,_,_),explicit_self)
820-
}
821-
fn pe_fn_style(&self) -> ast::FnStyle{
822-
mf_method_body!(self, MethDecl(_,_,_,_,fn_style,_,_,_),fn_style)
823-
}
824-
fn pe_fn_decl(&self) -> P<ast::FnDecl> {
825-
mf_method_body!(self, MethDecl(_,_,_,_,_,decl,_,_),decl)
826-
}
827-
fn pe_body(&self) -> P<ast::Block> {
828-
mf_method_body!(self, MethDecl(_,_,_,_,_,_,body,_),body)
829-
}
830-
fn pe_vis(&self) -> ast::Visibility {
831-
mf_method_body!(self, MethDecl(_,_,_,_,_,_,_,vis),vis)
832-
}
833780
}
834781

835-
// POST
836-
/*
837-
#[cfg(not(stage0))]
782+
838783
impl PostExpansionMethod for Method {
839-
mf_method!(pe_ident,ast::Ident,MethDecl(ident,_,_,_,_,_,_),ident)
784+
mf_method!(pe_ident,ast::Ident,MethDecl(ident,_,_,_,_,_,_,_),ident)
840785
mf_method!(pe_generics,&'a ast::Generics,
841-
MethDecl(_,ref generics,_,_,_,_,_),generics)
786+
MethDecl(_,ref generics,_,_,_,_,_,_),generics)
787+
mf_method!(pe_abi,Abi,MethDecl(_,_,abi,_,_,_,_,_),abi)
842788
mf_method!(pe_explicit_self,&'a ast::ExplicitSelf,
843-
MethDecl(_,_,ref explicit_self,_,_,_,_),explicit_self)
844-
mf_method!(pe_fn_style,ast::FnStyle,MethDecl(_,_,_,fn_style,_,_,_),fn_style)
845-
mf_method!(pe_fn_decl,P<ast::FnDecl>,MethDecl(_,_,_,_,decl,_,_),decl)
846-
mf_method!(pe_body,P<ast::Block>,MethDecl(_,_,_,_,_,body,_),body)
847-
mf_method!(pe_vis,ast::Visibility,MethDecl(_,_,_,_,_,_,vis),vis)
789+
MethDecl(_,_,_,ref explicit_self,_,_,_,_),explicit_self)
790+
mf_method!(pe_fn_style,ast::FnStyle,MethDecl(_,_,_,_,fn_style,_,_,_),fn_style)
791+
mf_method!(pe_fn_decl,P<ast::FnDecl>,MethDecl(_,_,_,_,_,decl,_,_),decl)
792+
mf_method!(pe_body,P<ast::Block>,MethDecl(_,_,_,_,_,_,body,_),body)
793+
mf_method!(pe_vis,ast::Visibility,MethDecl(_,_,_,_,_,_,_,vis),vis)
848794
}
849-
*/
850795

851796
#[cfg(test)]
852797
mod test {

src/libsyntax/diagnostics/macros.rs

-26
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,12 @@
1010

1111
#![macro_escape]
1212

13-
// NOTE: remove after next snapshot
14-
#[cfg(stage0)]
15-
#[macro_export]
16-
macro_rules! __register_diagnostic(
17-
($code:tt, $description:tt) => ();
18-
($code:tt) => ()
19-
)
20-
2113
#[macro_export]
2214
macro_rules! register_diagnostic(
2315
($code:tt, $description:tt) => (__register_diagnostic!($code, $description));
2416
($code:tt) => (__register_diagnostic!($code))
2517
)
2618

27-
// NOTE: remove after next snapshot
28-
#[cfg(stage0)]
29-
#[macro_export]
30-
macro_rules! __build_diagnostic_array(
31-
($name:ident) => {
32-
pub static $name: [(&'static str, &'static str), ..0] = [];
33-
}
34-
)
35-
36-
// NOTE: remove after next snapshot
37-
#[cfg(stage0)]
38-
#[macro_export]
39-
macro_rules! __diagnostic_used(
40-
($code:ident) => {
41-
()
42-
}
43-
)
44-
4519
#[macro_export]
4620
macro_rules! span_err(
4721
($session:expr, $span:expr, $code:ident, $($message:tt)*) => ({

src/libunicode/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
html_root_url = "http://doc.rust-lang.org/",
3030
html_playground_url = "http://play.rust-lang.org/")]
3131
#![no_std]
32-
#![allow(unused_attribute)] // NOTE: remove after stage0
3332

3433
extern crate core;
3534

src/snapshots.txt

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
S 2014-07-17 9fc8394
2+
freebsd-x86_64 5a4b645e2b42ae06224cc679d4a43b3d89be1482
3+
linux-i386 a5e1bb723020ac35173d49600e76b0935e257a6a
4+
linux-x86_64 1a2407df17442d93d1c34c916269a345658045d7
5+
macos-i386 6648fa88e41ad7c0991a085366e36d56005873ca
6+
macos-x86_64 71b2d1dfd0abe1052908dc091e098ed22cf272c6
7+
winnt-i386 c26f0a713c5fadf99cce935f60dce0ea403fb411
8+
19
S 2014-07-09 8ddd286
210
freebsd-x86_64 de0c39057f409b69e5ddb888ba3e20b90d63f5db
311
linux-i386 28bef31f2a017e1998256d0c2b2e0a0c9221451b

0 commit comments

Comments
 (0)