Copy first batch of material from libstd to libcore.
This commit is contained in:
parent
32087f5c2a
commit
fa9ad984fb
325 changed files with 5579 additions and 720 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import std::option;
|
||||
import option;
|
||||
|
||||
tag mode { mode_compile_fail; mode_run_fail; mode_run_pass; mode_pretty; }
|
||||
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
// FIXME: The way this module sets up tests is a relic and more convoluted
|
||||
// than it needs to be
|
||||
|
||||
import std::option;
|
||||
import option;
|
||||
import std::getopts;
|
||||
import std::test;
|
||||
import std::fs;
|
||||
import std::str;
|
||||
import std::vec;
|
||||
import std::task;
|
||||
import str;
|
||||
import vec;
|
||||
import task;
|
||||
|
||||
import std::comm::port;
|
||||
import std::comm::chan;
|
||||
import std::comm::send;
|
||||
import std::comm::recv;
|
||||
import comm::port;
|
||||
import comm::chan;
|
||||
import comm::send;
|
||||
import comm::recv;
|
||||
|
||||
import common::cx;
|
||||
import common::config;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import std::option;
|
||||
import std::str;
|
||||
import option;
|
||||
import str;
|
||||
import std::io;
|
||||
import std::fs;
|
||||
|
||||
|
|
@ -63,7 +63,7 @@ fn is_test_ignored(config: config, testfile: str) -> bool {
|
|||
}
|
||||
|
||||
fn iter_header(testfile: str, it: block(str)) {
|
||||
let rdr = std::result::get(io::file_reader(testfile));
|
||||
let rdr = result::get(io::file_reader(testfile));
|
||||
while !rdr.eof() {
|
||||
let ln = rdr.read_line();
|
||||
|
||||
|
|
|
|||
|
|
@ -4,20 +4,21 @@
|
|||
// child process. Because of that we have to use a complicated scheme with a
|
||||
// dedicated server for spawning processes.
|
||||
|
||||
import std::option;
|
||||
import std::task;
|
||||
import core::comm;
|
||||
import core::option;
|
||||
import task;
|
||||
import std::generic_os::setenv;
|
||||
import std::generic_os::getenv;
|
||||
import std::vec;
|
||||
import vec;
|
||||
import std::os;
|
||||
import std::run;
|
||||
import std::io;
|
||||
import std::str;
|
||||
import std::comm::chan;
|
||||
import std::comm::port;
|
||||
import std::comm::send;
|
||||
import std::comm::recv;
|
||||
import std::ctypes::{pid_t, fd_t};
|
||||
import str;
|
||||
import comm::chan;
|
||||
import comm::port;
|
||||
import comm::send;
|
||||
import comm::recv;
|
||||
import ctypes::{pid_t, fd_t};
|
||||
|
||||
export handle;
|
||||
export mk;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import std::io;
|
||||
import std::str;
|
||||
import std::option;
|
||||
import str;
|
||||
import option;
|
||||
import std::fs;
|
||||
import std::os;
|
||||
import std::vec;
|
||||
import std::result;
|
||||
import vec;
|
||||
import result;
|
||||
|
||||
import common::mode_run_pass;
|
||||
import common::mode_run_fail;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import std::option;
|
||||
import option;
|
||||
import std::generic_os::getenv;
|
||||
import std::io;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue