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/librustpkg/path_util.rs | 3 --- src/librustpkg/rustpkg.rc | 4 ---- src/librustpkg/tests.rs | 5 +---- 3 files changed, 1 insertion(+), 11 deletions(-) (limited to 'src/librustpkg') diff --git a/src/librustpkg/path_util.rs b/src/librustpkg/path_util.rs index 0ebc33cf5bc..0490f066f0b 100644 --- a/src/librustpkg/path_util.rs +++ b/src/librustpkg/path_util.rs @@ -10,9 +10,6 @@ // rustpkg utilities having to do with paths and directories -use core::path::*; -use core::{os, str}; -use core::option::*; use util::PkgId; use core::libc::consts::os::posix88::{S_IRUSR, S_IWUSR, S_IXUSR}; diff --git a/src/librustpkg/rustpkg.rc b/src/librustpkg/rustpkg.rc index e1edce6ce5b..a296f0ca32a 100644 --- a/src/librustpkg/rustpkg.rc +++ b/src/librustpkg/rustpkg.rc @@ -17,20 +17,16 @@ #[license = "MIT/ASL2"]; #[crate_type = "lib"]; -#[no_core]; #[allow(vecs_implicitly_copyable, non_implicitly_copyable_typarams)]; -extern mod core(vers = "0.7-pre"); extern mod std(vers = "0.7-pre"); extern mod rustc(vers = "0.7-pre"); extern mod syntax(vers = "0.7-pre"); use core::*; pub use core::path::Path; -use core::container::Map; use core::hashmap::HashMap; -use core::io::WriterUtil; use rustc::driver::{driver, session}; use rustc::metadata::filesearch; use std::{getopts}; diff --git a/src/librustpkg/tests.rs b/src/librustpkg/tests.rs index 70c03c845ce..49cc875355b 100644 --- a/src/librustpkg/tests.rs +++ b/src/librustpkg/tests.rs @@ -13,9 +13,6 @@ use context::Ctx; use core::hashmap::HashMap; use core::path::Path; -use core::os; -use core::io; -use core::option::*; use std::tempfile::mkdtemp; use util::{PkgId, default_version}; use path_util::{target_executable_in_workspace, target_library_in_workspace, @@ -101,4 +98,4 @@ fn test_install_invalid() { fail!(~"test_install_invalid failed, should have raised a condition"); }; assert!(substituted == expected_path); -} \ No newline at end of file +} -- cgit 1.4.1-3-g733a5