only use #[no_core] in libcore
This commit is contained in:
parent
dd5b1de181
commit
f792baba42
211 changed files with 6 additions and 810 deletions
|
|
@ -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};
|
||||
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue