From 34cfd2183b1d46ccec97691870a3bcceee5ee367 Mon Sep 17 00:00:00 2001 From: Ted Horst Date: Thu, 23 May 2013 15:06:29 -0500 Subject: more testing fallout from core->std/std->extra move --- src/etc/extract-tests.py | 4 ++-- src/librusti/rusti.rc | 1 + src/librustpkg/tests.rs | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/etc/extract-tests.py b/src/etc/extract-tests.py index 12740a5616b..0260789adfc 100644 --- a/src/etc/extract-tests.py +++ b/src/etc/extract-tests.py @@ -57,8 +57,8 @@ while cur < len(lines): if not ignore: if not re.search(r"\bfn main\b", block): block = "fn main() {\n" + block + "\n}\n" - if not re.search(r"\bextern mod std\b", block): - block = "extern mod std;\n" + block + if not re.search(r"\bextern mod extra\b", block): + block = "extern mod extra;\n" + block block = """#[ forbid(ctypes) ]; #[ forbid(deprecated_pattern) ]; #[ forbid(implicit_copies) ]; diff --git a/src/librusti/rusti.rc b/src/librusti/rusti.rc index c79714bba36..d99e6f5085d 100644 --- a/src/librusti/rusti.rc +++ b/src/librusti/rusti.rc @@ -431,6 +431,7 @@ pub fn main() { #[cfg(test)] mod tests { use super::*; + use core::io; fn repl() -> Repl { Repl { diff --git a/src/librustpkg/tests.rs b/src/librustpkg/tests.rs index 2574ba4e762..55bc302d9a1 100644 --- a/src/librustpkg/tests.rs +++ b/src/librustpkg/tests.rs @@ -13,6 +13,7 @@ use context::Ctx; use core::hashmap::HashMap; use core::path::Path; +use core::prelude::*; use std::tempfile::mkdtemp; use util::{PkgId, default_version}; use path_util::{target_executable_in_workspace, target_library_in_workspace, -- cgit 1.4.1-3-g733a5