diff options
Diffstat (limited to 'src/libsyntax/ext')
26 files changed, 0 insertions, 86 deletions
diff --git a/src/libsyntax/ext/asm.rs b/src/libsyntax/ext/asm.rs index b070948d405..534027bd295 100644 --- a/src/libsyntax/ext/asm.rs +++ b/src/libsyntax/ext/asm.rs @@ -8,14 +8,10 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - - /* * Inline assembly support. */ -use core::prelude::*; - use ast; use codemap::span; use ext::base; diff --git a/src/libsyntax/ext/auto_encode.rs b/src/libsyntax/ext/auto_encode.rs index 8263fce2356..0d451c66edb 100644 --- a/src/libsyntax/ext/auto_encode.rs +++ b/src/libsyntax/ext/auto_encode.rs @@ -88,8 +88,6 @@ node twice. */ -use core::prelude::*; - use ast; use ast_util; use attr; @@ -101,8 +99,6 @@ use opt_vec; use opt_vec::OptVec; use ext::build; -use core::vec; - // Transitional reexports so qquote can find the paths it is looking for mod syntax { pub use ext; diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index 4eb48d12bfe..ecbccedbd9d 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.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; use codemap::{CodeMap, span, ExpnInfo, ExpandedFrom}; @@ -19,7 +17,6 @@ use ext; use parse; use parse::token; -use core::vec; use core::hashmap::HashMap; // new-style macro! tt code: diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index db4929854b3..c4c2fed778f 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.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; use codemap::span; @@ -18,8 +16,6 @@ use ext::build; use opt_vec::OptVec; -use core::option; - pub struct Field { ident: ast::ident, ex: @ast::expr diff --git a/src/libsyntax/ext/concat_idents.rs b/src/libsyntax/ext/concat_idents.rs index f4901191b8a..55e25e69936 100644 --- a/src/libsyntax/ext/concat_idents.rs +++ b/src/libsyntax/ext/concat_idents.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::span; use ext::base::*; diff --git a/src/libsyntax/ext/deriving/decodable.rs b/src/libsyntax/ext/deriving/decodable.rs index df3536a3cae..48f6d5baa8b 100644 --- a/src/libsyntax/ext/deriving/decodable.rs +++ b/src/libsyntax/ext/deriving/decodable.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 ast::*; use ext::base::ext_ctxt; @@ -19,8 +17,6 @@ use codemap::{span, spanned}; use ast_util; use opt_vec; -use core::uint; - pub fn expand_deriving_decodable( cx: @ext_ctxt, span: span, diff --git a/src/libsyntax/ext/deriving/encodable.rs b/src/libsyntax/ext/deriving/encodable.rs index 6fd27c5f3d7..640d0d0ff2d 100644 --- a/src/libsyntax/ext/deriving/encodable.rs +++ b/src/libsyntax/ext/deriving/encodable.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 ast::*; use ext::base::ext_ctxt; @@ -19,8 +17,6 @@ use codemap::{span, spanned}; use ast_util; use opt_vec; -use core::uint; - pub fn expand_deriving_encodable( cx: @ext_ctxt, span: span, diff --git a/src/libsyntax/ext/deriving/generic.rs b/src/libsyntax/ext/deriving/generic.rs index 461c99e8442..05941f4cbd6 100644 --- a/src/libsyntax/ext/deriving/generic.rs +++ b/src/libsyntax/ext/deriving/generic.rs @@ -125,8 +125,6 @@ For `C0(a)` and `C1 {x}` , */ -use core::prelude::*; - use ast; use ast::{ diff --git a/src/libsyntax/ext/deriving/iter_bytes.rs b/src/libsyntax/ext/deriving/iter_bytes.rs index 85592d142ab..f03306ea07a 100644 --- a/src/libsyntax/ext/deriving/iter_bytes.rs +++ b/src/libsyntax/ext/deriving/iter_bytes.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 ast::*; use ext::base::ext_ctxt; @@ -19,8 +17,6 @@ use codemap::{span, spanned}; use ast_util; use opt_vec; -use core::uint; - pub fn expand_deriving_iter_bytes(cx: @ext_ctxt, span: span, _mitem: @meta_item, diff --git a/src/libsyntax/ext/deriving/mod.rs b/src/libsyntax/ext/deriving/mod.rs index 577cf4c01cf..5aeeef2b17a 100644 --- a/src/libsyntax/ext/deriving/mod.rs +++ b/src/libsyntax/ext/deriving/mod.rs @@ -11,8 +11,6 @@ /// The compiler code necessary to implement the #[deriving(Eq)] and /// #[deriving(IterBytes)] extensions. -use core::prelude::*; - use ast; use ast::{Ty, bind_by_ref, deref, enum_def}; use ast::{expr, expr_match, ident, item, item_}; @@ -28,8 +26,6 @@ use codemap::{span, respan}; use parse::token::special_idents::clownshoes_extensions; use opt_vec; -use core::uint; - pub mod clone; pub mod iter_bytes; pub mod encodable; diff --git a/src/libsyntax/ext/env.rs b/src/libsyntax/ext/env.rs index c21a9fa8739..5e5fd7d97b1 100644 --- a/src/libsyntax/ext/env.rs +++ b/src/libsyntax/ext/env.rs @@ -8,15 +8,12 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - /* * The compiler code necessary to support the env! extension. Eventually this * should all get sucked into either the compiler syntax extension plugin * interface. */ -use core::prelude::*; - use ast; use codemap::span; use ext::base::*; diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index 53ebb946114..fde5a259422 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.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::{blk_, attribute_, attr_outer, meta_word}; use ast::{crate, expr_, expr_mac, mac_invoc_tt}; use ast::{item_mac, stmt_, stmt_mac, stmt_expr, stmt_semi}; @@ -22,8 +20,6 @@ use fold::*; use parse; use parse::{parse_item_from_source_str}; -use core::vec; - pub fn expand_expr(extsbox: @mut SyntaxEnv, cx: @ext_ctxt, e: &expr_, diff --git a/src/libsyntax/ext/fmt.rs b/src/libsyntax/ext/fmt.rs index 6a877040f48..9bbe617eb07 100644 --- a/src/libsyntax/ext/fmt.rs +++ b/src/libsyntax/ext/fmt.rs @@ -8,16 +8,12 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - - /* * The compiler code necessary to support the fmt! extension. Eventually this * should all get sucked into either the standard library extfmt module or the * compiler syntax extension plugin interface. */ -use core::prelude::*; - use ast; use codemap::span; use ext::base::*; diff --git a/src/libsyntax/ext/log_syntax.rs b/src/libsyntax/ext/log_syntax.rs index bf4a997bc17..34d6978abdd 100644 --- a/src/libsyntax/ext/log_syntax.rs +++ b/src/libsyntax/ext/log_syntax.rs @@ -8,9 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use core::io::WriterUtil; -use core::prelude::*; - use ast; use codemap; use ext::base::*; diff --git a/src/libsyntax/ext/pipes/ast_builder.rs b/src/libsyntax/ext/pipes/ast_builder.rs index 9434172c1f4..ede3711b052 100644 --- a/src/libsyntax/ext/pipes/ast_builder.rs +++ b/src/libsyntax/ext/pipes/ast_builder.rs @@ -13,8 +13,6 @@ // To start with, it will be use dummy spans, but it might someday do // something smarter. -use core::prelude::*; - use abi::AbiSet; use ast::ident; use ast; @@ -26,8 +24,6 @@ use ext::quote::rt::*; use opt_vec; use opt_vec::OptVec; -use core::vec; - // Transitional reexports so qquote can find the paths it is looking for mod syntax { pub use ext; diff --git a/src/libsyntax/ext/pipes/check.rs b/src/libsyntax/ext/pipes/check.rs index 29c9e86ec62..c2c0c06342b 100644 --- a/src/libsyntax/ext/pipes/check.rs +++ b/src/libsyntax/ext/pipes/check.rs @@ -29,8 +29,6 @@ that. */ -use core::prelude::*; - use ast; use codemap::span; use ext::base::ext_ctxt; diff --git a/src/libsyntax/ext/pipes/liveness.rs b/src/libsyntax/ext/pipes/liveness.rs index c6fdf4d9c1b..4597dab89cb 100644 --- a/src/libsyntax/ext/pipes/liveness.rs +++ b/src/libsyntax/ext/pipes/liveness.rs @@ -37,12 +37,9 @@ updating the states using rule (2) until there are no changes. */ -use core::prelude::*; - use ext::base::ext_ctxt; use ext::pipes::proto::protocol; -use core::str; use std::bitv::Bitv; pub fn analyze(proto: protocol, _cx: @ext_ctxt) { diff --git a/src/libsyntax/ext/pipes/parse_proto.rs b/src/libsyntax/ext/pipes/parse_proto.rs index 7339ebdaa98..f9346f49b61 100644 --- a/src/libsyntax/ext/pipes/parse_proto.rs +++ b/src/libsyntax/ext/pipes/parse_proto.rs @@ -16,8 +16,6 @@ use parse::common::SeqSep; use parse::parser; use parse::token; -use core::prelude::*; - pub trait proto_parser { fn parse_proto(&self, id: ~str) -> protocol; fn parse_state(&self, proto: protocol); diff --git a/src/libsyntax/ext/pipes/pipec.rs b/src/libsyntax/ext/pipes/pipec.rs index 105e08e5fb4..e6f5d3608af 100644 --- a/src/libsyntax/ext/pipes/pipec.rs +++ b/src/libsyntax/ext/pipes/pipec.rs @@ -20,11 +20,6 @@ use ext::quote::rt::*; use opt_vec; use opt_vec::OptVec; -use core::prelude::*; -use core::str; -use core::to_str::ToStr; -use core::vec; - pub trait gen_send { fn gen_send(&mut self, cx: @ext_ctxt, try: bool) -> @ast::item; fn to_ty(&mut self, cx: @ext_ctxt) -> @ast::Ty; diff --git a/src/libsyntax/ext/pipes/proto.rs b/src/libsyntax/ext/pipes/proto.rs index 6495750f93b..79072a2f577 100644 --- a/src/libsyntax/ext/pipes/proto.rs +++ b/src/libsyntax/ext/pipes/proto.rs @@ -8,15 +8,11 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use core::prelude::*; - use ast; use codemap::span; use ext::base::ext_ctxt; use ext::pipes::ast_builder::{append_types, ext_ctxt_ast_builder, path}; -use core::to_str::ToStr; - #[deriving(Eq)] pub enum direction { send, recv } diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index f355d327d4f..f7412a4502c 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -17,8 +17,6 @@ use parse::token::*; use parse::token; use parse; -use core::prelude::*; - /** * * Quasiquoting works via token trees. @@ -36,7 +34,6 @@ pub mod rt { use parse; use print::pprust; - use core::prelude::*; use core::str; pub use ast::*; diff --git a/src/libsyntax/ext/source_util.rs b/src/libsyntax/ext/source_util.rs index b2de322be55..70aa9472c85 100644 --- a/src/libsyntax/ext/source_util.rs +++ b/src/libsyntax/ext/source_util.rs @@ -18,12 +18,6 @@ use ext::build::{mk_base_vec_e, mk_uint, mk_u8, mk_base_str}; use parse; use print::pprust; -use core::io; -use core::prelude::*; -use core::result; -use core::str; -use core::vec; - // These macros all relate to the file system; they either return // the column/row/filename of the expression, or they include // a given file into the current one. diff --git a/src/libsyntax/ext/trace_macros.rs b/src/libsyntax/ext/trace_macros.rs index 29a959013f2..a29a0f33e0d 100644 --- a/src/libsyntax/ext/trace_macros.rs +++ b/src/libsyntax/ext/trace_macros.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::span; use ext::base::ext_ctxt; diff --git a/src/libsyntax/ext/tt/macro_parser.rs b/src/libsyntax/ext/tt/macro_parser.rs index 9df7a8e7e1d..e4e033e0fff 100644 --- a/src/libsyntax/ext/tt/macro_parser.rs +++ b/src/libsyntax/ext/tt/macro_parser.rs @@ -19,7 +19,6 @@ use parse::parser::Parser; use parse::token::{Token, EOF, to_str, nonterminal}; use parse::token; -use core::prelude::*; use core::hashmap::HashMap; /* This is an Earley-like parser, without support for in-grammar nonterminals, diff --git a/src/libsyntax/ext/tt/macro_rules.rs b/src/libsyntax/ext/tt/macro_rules.rs index 9a8c288c3a1..39c3c63a9b7 100644 --- a/src/libsyntax/ext/tt/macro_rules.rs +++ b/src/libsyntax/ext/tt/macro_rules.rs @@ -8,7 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use core::prelude::*; use ast::{ident, matcher_, matcher, match_tok, match_nonterminal, match_seq}; use ast::{tt_delim}; diff --git a/src/libsyntax/ext/tt/transcribe.rs b/src/libsyntax/ext/tt/transcribe.rs index 7ac924444b8..19c83e21a86 100644 --- a/src/libsyntax/ext/tt/transcribe.rs +++ b/src/libsyntax/ext/tt/transcribe.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 ast::{token_tree, tt_delim, tt_tok, tt_seq, tt_nonterminal,ident}; use codemap::{span, dummy_sp}; @@ -19,8 +17,6 @@ use parse::token::{EOF, INTERPOLATED, IDENT, Token, nt_ident, ident_interner}; use parse::lexer::TokenAndSpan; use core::hashmap::HashMap; -use core::option; -use core::vec; ///an unzipping of `token_tree`s struct TtFrame { |
