From f792baba42b79711b64950c46208a1eb4b9539be Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 26 Apr 2013 12:24:15 -0400 Subject: only use #[no_core] in libcore --- src/libsyntax/parse/comments.rs | 8 -------- src/libsyntax/parse/common.rs | 4 ---- src/libsyntax/parse/lexer.rs | 7 ------- src/libsyntax/parse/obsolete.rs | 2 -- src/libsyntax/parse/parser.rs | 2 -- src/libsyntax/parse/prec.rs | 2 -- src/libsyntax/parse/token.rs | 6 ------ 7 files changed, 31 deletions(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs index b73544e95d6..40bfd3d380c 100644 --- a/src/libsyntax/parse/comments.rs +++ b/src/libsyntax/parse/comments.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use core::prelude::*; - use ast; use codemap::{BytePos, CharPos, CodeMap, Pos}; use diagnostic; @@ -20,12 +18,6 @@ use parse::lexer; use parse::token; use parse; -use core::io::ReaderUtil; -use core::io; -use core::str; -use core::uint; -use core::vec; - #[deriving(Eq)] pub enum cmnt_style { isolated, // No code on either side of each line of the comment diff --git a/src/libsyntax/parse/common.rs b/src/libsyntax/parse/common.rs index 2d4a6d47eaa..01f80c032e9 100644 --- a/src/libsyntax/parse/common.rs +++ b/src/libsyntax/parse/common.rs @@ -8,16 +8,12 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use core::prelude::*; - use ast; use codemap::{BytePos, spanned}; use parse::lexer::reader; use parse::parser::Parser; use parse::token; -use core::option::{None, Option, Some}; - use opt_vec; use opt_vec::OptVec; diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs index a9edf12f7fa..fa425cf6285 100644 --- a/src/libsyntax/parse/lexer.rs +++ b/src/libsyntax/parse/lexer.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use core::prelude::*; - use ast; use codemap::{BytePos, CharPos, CodeMap, Pos, span}; use codemap; @@ -18,11 +16,6 @@ use ext::tt::transcribe::{tt_next_token}; use ext::tt::transcribe::{dup_tt_reader}; use parse::token; -use core::char; -use core::either; -use core::str; -use core::u64; - pub use ext::tt::transcribe::{TtReader, new_tt_reader}; //use std; diff --git a/src/libsyntax/parse/obsolete.rs b/src/libsyntax/parse/obsolete.rs index 423fc6dca6d..e6e98a35d6e 100644 --- a/src/libsyntax/parse/obsolete.rs +++ b/src/libsyntax/parse/obsolete.rs @@ -17,7 +17,6 @@ Obsolete syntax that becomes too hard to parse can be removed. */ -use core::prelude::*; use ast::{expr, expr_lit, lit_nil}; use ast; @@ -26,7 +25,6 @@ use parse::parser::Parser; use parse::token::Token; use parse::token; -use core::str; use core::to_bytes; /// The specific types of unsupported syntax diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index d5cb1f5ebac..c35b0e2e8c2 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use core::prelude::*; - use abi; use abi::AbiSet; use ast::{Sigil, BorrowedSigil, ManagedSigil, OwnedSigil}; diff --git a/src/libsyntax/parse/prec.rs b/src/libsyntax/parse/prec.rs index d8c829740fa..5f37c922c1e 100644 --- a/src/libsyntax/parse/prec.rs +++ b/src/libsyntax/parse/prec.rs @@ -13,8 +13,6 @@ use ast::*; use parse::token::*; use parse::token::Token; -use core::prelude::*; - /// Unary operators have higher precedence than binary pub static unop_prec: uint = 100u; diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 2483cacd1a6..413f1688df1 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -8,20 +8,14 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use core::prelude::*; - use ast; use ast_util; use parse::token; use util::interner::Interner; use util::interner; -use core::cast; -use core::char; use core::cmp::Equiv; use core::hashmap::HashSet; -use core::str; -use core::task; use core::to_bytes; #[auto_encode] -- cgit 1.4.1-3-g733a5