diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-02-28 11:57:33 -0500 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-03-04 12:27:01 -0500 |
| commit | cb4ab76e4a17e0efc6b506af15fd1df654c043ff (patch) | |
| tree | f12c8ae2ad1979e973ccf4ef95b1a396a2daa246 /src/libsyntax | |
| parent | bc3bee410a6967942d18cef59a781603a7db86e4 (diff) | |
| download | rust-cb4ab76e4a17e0efc6b506af15fd1df654c043ff.tar.gz rust-cb4ab76e4a17e0efc6b506af15fd1df654c043ff.zip | |
Adding missing imports for tests, and gate off others
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast.rs | 8 | ||||
| -rw-r--r-- | src/libsyntax/ext/auto_encode.rs | 7 | ||||
| -rw-r--r-- | src/libsyntax/ext/base.rs | 1 | ||||
| -rw-r--r-- | src/libsyntax/ext/trace_macros.rs | 1 | ||||
| -rw-r--r-- | src/libsyntax/parse/lexer.rs | 1 |
5 files changed, 4 insertions, 14 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 16266236a12..47948cc3ead 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -1334,15 +1334,15 @@ pub enum inlined_item { #[cfg(test)] mod test { - use std; - use codemap::*; - use super::*; - //are asts encodable? // it looks like this *will* be a compiler bug, after // I get deriving_eq for crates into incoming :) /* + use std; + use codemap::*; + use super::*; + #[test] fn check_asts_encodable() { let bogus_span = span {lo:BytePos(10), hi:BytePos(20), diff --git a/src/libsyntax/ext/auto_encode.rs b/src/libsyntax/ext/auto_encode.rs index 33b768bdb61..644afaff37c 100644 --- a/src/libsyntax/ext/auto_encode.rs +++ b/src/libsyntax/ext/auto_encode.rs @@ -1206,14 +1206,7 @@ fn mk_enum_deser_body( mod test { use std::serialize::Encodable; use std::serialize::Encoder; - use core::dvec::*; use util::testing::*; - use core::io; - use core::str; - use core::option::Option; - use core::option::Some; - use core::option::None; - use std; // just adding the ones I want to test, for now: #[deriving_eq] diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index c076936a12c..e9a3f47ab7b 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -500,7 +500,6 @@ impl <K: Eq + Hash + IterBytes ,V: Copy> MapChain<K,V>{ #[cfg(test)] mod test { - use super::*; use super::MapChain; use util::testing::check_equal; use core::hashmap::linear::LinearMap; diff --git a/src/libsyntax/ext/trace_macros.rs b/src/libsyntax/ext/trace_macros.rs index d7f7f7c6510..b53523f78a4 100644 --- a/src/libsyntax/ext/trace_macros.rs +++ b/src/libsyntax/ext/trace_macros.rs @@ -10,7 +10,6 @@ use core::prelude::*; -use ast::tt_delim; use ast; use codemap::span; use ext::base::ext_ctxt; diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs index 6e3c712273b..524f9b48dd5 100644 --- a/src/libsyntax/parse/lexer.rs +++ b/src/libsyntax/parse/lexer.rs @@ -779,7 +779,6 @@ pub mod test { use core::option::None; use diagnostic; use parse::token; - use util::interner; use util::testing::{check_equal, check_equal_ptr}; // represents a testing reader (incl. both reader and interner) |
