about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ast.rs3
-rw-r--r--src/libsyntax/parse/lexer/mod.rs6
-rw-r--r--src/libsyntax/parse/parser.rs11
-rw-r--r--src/libsyntax/parse/token.rs77
4 files changed, 0 insertions, 97 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index 18fc970c218..078e393eb28 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -24,9 +24,6 @@ use std::fmt::Show;
 use std::rc::Rc;
 use serialize::{Encodable, Decodable, Encoder, Decoder};
 
-#[cfg(stage0)]
-pub use self::TtToken as TTTok;
-
 // FIXME #6993: in librustc, uses of "ident" should be replaced
 // by just "Name".
 
diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs
index de5004fe2f8..35d56440b50 100644
--- a/src/libsyntax/parse/lexer/mod.rs
+++ b/src/libsyntax/parse/lexer/mod.rs
@@ -1491,13 +1491,7 @@ mod test {
         }
     }
 
-    #[cfg(stage0)]
-    fn mk_ident (id: &str, is_mod_name: bool) -> token::Token {
-        token::Ident(str_to_ident(id), is_mod_name)
-    }
-
     // make the identifier by looking up the string in the interner
-    #[cfg(not(stage0))]
     fn mk_ident(id: &str, style: token::IdentStyle) -> token::Token {
         token::Ident(str_to_ident(id), style)
     }
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 8ad5bdac7e2..10bb9ef3625 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -63,7 +63,6 @@ use ast::{Visibility, WhereClause, WherePredicate};
 use ast;
 use ast_util::{as_prec, ident_to_path, operator_prec};
 use ast_util;
-use attr;
 use codemap::{Span, BytePos, Spanned, spanned, mk_sp};
 use codemap;
 use parse;
@@ -1262,11 +1261,6 @@ impl<'a> Parser<'a> {
                 let vis = p.parse_visibility();
                 let abi = if p.eat_keyword(keywords::Extern) {
                     p.parse_opt_abi().unwrap_or(abi::C)
-                } else if attr::contains_name(attrs.as_slice(),
-                                              "rust_call_abi_hack") {
-                    // FIXME(stage0, pcwalton): Remove this awful hack after a
-                    // snapshot, and change to `extern "rust-call" fn`.
-                    abi::RustCall
                 } else {
                     abi::Rust
                 };
@@ -4446,11 +4440,6 @@ impl<'a> Parser<'a> {
             } else {
                 let abi = if self.eat_keyword(keywords::Extern) {
                     self.parse_opt_abi().unwrap_or(abi::C)
-                } else if attr::contains_name(attrs.as_slice(),
-                                              "rust_call_abi_hack") {
-                    // FIXME(stage0, pcwalton): Remove this awful hack after a
-                    // snapshot, and change to `extern "rust-call" fn`.
-                    abi::RustCall
                 } else {
                     abi::Rust
                 };
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 615cd34ca14..29a2f38959e 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -20,69 +20,6 @@ use std::mem;
 use std::path::BytesContainer;
 use std::rc::Rc;
 
-// NOTE(stage0): remove these re-exports after the next snapshot
-// (needed to allow quotations to pass stage0)
-#[cfg(stage0)] pub use self::Plus           as PLUS;
-#[cfg(stage0)] pub use self::Minus          as MINUS;
-#[cfg(stage0)] pub use self::Star           as STAR;
-#[cfg(stage0)] pub use self::Slash          as SLASH;
-#[cfg(stage0)] pub use self::Percent        as PERCENT;
-#[cfg(stage0)] pub use self::Caret          as CARET;
-#[cfg(stage0)] pub use self::And            as AND;
-#[cfg(stage0)] pub use self::Or             as OR;
-#[cfg(stage0)] pub use self::Shl            as SHL;
-#[cfg(stage0)] pub use self::Shr            as SHR;
-#[cfg(stage0)] pub use self::Eq             as EQ;
-#[cfg(stage0)] pub use self::Lt             as LT;
-#[cfg(stage0)] pub use self::Le             as LE;
-#[cfg(stage0)] pub use self::EqEq           as EQEQ;
-#[cfg(stage0)] pub use self::Ne             as NE;
-#[cfg(stage0)] pub use self::Ge             as GE;
-#[cfg(stage0)] pub use self::Gt             as GT;
-#[cfg(stage0)] pub use self::AndAnd         as ANDAND;
-#[cfg(stage0)] pub use self::OrOr           as OROR;
-#[cfg(stage0)] pub use self::Not            as NOT;
-#[cfg(stage0)] pub use self::Tilde          as TILDE;
-#[cfg(stage0)] pub use self::BinOp          as BINOP;
-#[cfg(stage0)] pub use self::BinOpEq        as BINOPEQ;
-#[cfg(stage0)] pub use self::At             as AT;
-#[cfg(stage0)] pub use self::Dot            as DOT;
-#[cfg(stage0)] pub use self::DotDot         as DOTDOT;
-#[cfg(stage0)] pub use self::DotDotDot      as DOTDOTDOT;
-#[cfg(stage0)] pub use self::Comma          as COMMA;
-#[cfg(stage0)] pub use self::Semi           as SEMI;
-#[cfg(stage0)] pub use self::Colon          as COLON;
-#[cfg(stage0)] pub use self::ModSep         as MOD_SEP;
-#[cfg(stage0)] pub use self::RArrow         as RARROW;
-#[cfg(stage0)] pub use self::LArrow         as LARROW;
-#[cfg(stage0)] pub use self::FatArrow       as FAT_ARROW;
-#[cfg(stage0)] pub use self::Pound          as POUND;
-#[cfg(stage0)] pub use self::Dollar         as DOLLAR;
-#[cfg(stage0)] pub use self::Question       as QUESTION;
-#[cfg(stage0)] pub use self::LitByte        as LIT_BYTE;
-#[cfg(stage0)] pub use self::LitChar        as LIT_CHAR;
-#[cfg(stage0)] pub use self::LitInteger     as LIT_INTEGER;
-#[cfg(stage0)] pub use self::LitFloat       as LIT_FLOAT;
-#[cfg(stage0)] pub use self::LitStr         as LIT_STR;
-#[cfg(stage0)] pub use self::LitStrRaw      as LIT_STR_RAW;
-#[cfg(stage0)] pub use self::LitBinary      as LIT_BINARY;
-#[cfg(stage0)] pub use self::LitBinaryRaw   as LIT_BINARY_RAW;
-#[cfg(stage0)] pub use self::Ident          as IDENT;
-#[cfg(stage0)] pub use self::Underscore     as UNDERSCORE;
-#[cfg(stage0)] pub use self::Lifetime       as LIFETIME;
-#[cfg(stage0)] pub use self::Interpolated   as INTERPOLATED;
-#[cfg(stage0)] pub use self::DocComment     as DOC_COMMENT;
-#[cfg(stage0)] pub use self::Whitespace     as WS;
-#[cfg(stage0)] pub use self::Comment        as COMMENT;
-#[cfg(stage0)] pub use self::Shebang        as SHEBANG;
-#[cfg(stage0)] pub use self::Eof            as EOF;
-#[cfg(stage0)] pub const LPAREN:    Token = OpenDelim(Paren);
-#[cfg(stage0)] pub const RPAREN:    Token = CloseDelim(Paren);
-#[cfg(stage0)] pub const LBRACKET:  Token = OpenDelim(Bracket);
-#[cfg(stage0)] pub const RBRACKET:  Token = CloseDelim(Bracket);
-#[cfg(stage0)] pub const LBRACE:    Token = OpenDelim(Brace);
-#[cfg(stage0)] pub const RBRACE:    Token = CloseDelim(Brace);
-
 #[allow(non_camel_case_types)]
 #[deriving(Clone, Encodable, Decodable, PartialEq, Eq, Hash, Show)]
 pub enum BinOpToken {
@@ -109,15 +46,7 @@ pub enum DelimToken {
     Brace,
 }
 
-#[cfg(stage0)]
-#[allow(non_upper_case_globals)]
-pub const ModName: bool = true;
-#[cfg(stage0)]
-#[allow(non_upper_case_globals)]
-pub const Plain: bool = false;
-
 #[deriving(Clone, Encodable, Decodable, PartialEq, Eq, Hash, Show)]
-#[cfg(not(stage0))]
 pub enum IdentStyle {
     /// `::` follows the identifier with no whitespace in-between.
     ModName,
@@ -173,9 +102,6 @@ pub enum Token {
     LitBinaryRaw(ast::Name, uint), /* raw binary str delimited by n hash symbols */
 
     /* Name components */
-    #[cfg(stage0)]
-    Ident(ast::Ident, bool),
-    #[cfg(not(stage0))]
     Ident(ast::Ident, IdentStyle),
     Underscore,
     Lifetime(ast::Ident),
@@ -398,9 +324,6 @@ pub enum Nonterminal {
     NtPat(P<ast::Pat>),
     NtExpr(P<ast::Expr>),
     NtTy(P<ast::Ty>),
-    #[cfg(stage0)]
-    NtIdent(Box<ast::Ident>, bool),
-    #[cfg(not(stage0))]
     NtIdent(Box<ast::Ident>, IdentStyle),
     /// Stuff inside brackets for attributes
     NtMeta(P<ast::MetaItem>),