diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2011-12-13 16:25:51 -0800 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-12-13 16:34:50 -0800 |
| commit | fa9ad984fb2f013baebdbe01a42baa3b9101dd84 (patch) | |
| tree | 49115690e45ca322337b93f25308cd618f85b013 /src/comp/back | |
| parent | 32087f5c2a35bf8050067c22a57fd60269633a60 (diff) | |
| download | rust-fa9ad984fb2f013baebdbe01a42baa3b9101dd84.tar.gz rust-fa9ad984fb2f013baebdbe01a42baa3b9101dd84.zip | |
Copy first batch of material from libstd to libcore.
Diffstat (limited to 'src/comp/back')
| -rw-r--r-- | src/comp/back/link.rs | 8 | ||||
| -rw-r--r-- | src/comp/back/rpath.rs | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/comp/back/link.rs b/src/comp/back/link.rs index d6cbd2aa9fa..a451d9dbacc 100644 --- a/src/comp/back/link.rs +++ b/src/comp/back/link.rs @@ -5,10 +5,10 @@ import front::attr; import middle::ty; import metadata::{encoder, cstore}; import middle::trans_common::crate_ctxt; -import std::str; +import str; import std::fs; -import std::vec; -import std::option; +import vec; +import option; import std::run; import option::some; import option::none; @@ -32,7 +32,7 @@ tag output_type { fn llvm_err(sess: session::session, msg: str) unsafe { let buf = llvm::LLVMRustGetLastError(); - if buf == std::ptr::null() { + if buf == ptr::null() { sess.fatal(msg); } else { sess.fatal(msg + ": " + str::str_from_cstr(buf)); } } diff --git a/src/comp/back/rpath.rs b/src/comp/back/rpath.rs index 048459dfcbf..a3b662e243f 100644 --- a/src/comp/back/rpath.rs +++ b/src/comp/back/rpath.rs @@ -1,11 +1,11 @@ import std::os; import std::fs; import std::os_fs; -import std::vec; +import vec; import std::map; import std::math; -import std::str; -import std::uint; +import str; +import uint; import metadata::cstore; import driver::session; import util::filesearch; |
