libextra: Rename the actual metadata names of libcore to libstd and libstd to libextra
This commit is contained in:
parent
ebfc2b8e56
commit
f3723cf7c4
231 changed files with 545 additions and 32 deletions
|
@ -215,8 +215,8 @@ CFG_LIBRUSTDOC_$(1) :=$(call CFG_LIB_NAME_$(1),rustdoc)
|
||||||
CFG_LIBRUSTI_$(1) :=$(call CFG_LIB_NAME_$(1),rusti)
|
CFG_LIBRUSTI_$(1) :=$(call CFG_LIB_NAME_$(1),rusti)
|
||||||
CFG_LIBRUST_$(1) :=$(call CFG_LIB_NAME_$(1),rust)
|
CFG_LIBRUST_$(1) :=$(call CFG_LIB_NAME_$(1),rust)
|
||||||
|
|
||||||
EXTRALIB_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),std)
|
EXTRALIB_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),extra)
|
||||||
STDLIB_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),core)
|
STDLIB_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),std)
|
||||||
LIBRUSTC_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),rustc)
|
LIBRUSTC_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),rustc)
|
||||||
LIBSYNTAX_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),syntax)
|
LIBSYNTAX_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),syntax)
|
||||||
LIBFUZZER_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),fuzzer)
|
LIBFUZZER_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),fuzzer)
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
#[deriving(Eq)]
|
#[deriving(Eq)]
|
||||||
pub enum mode {
|
pub enum mode {
|
||||||
mode_compile_fail,
|
mode_compile_fail,
|
||||||
|
|
|
@ -12,11 +12,14 @@
|
||||||
|
|
||||||
#[allow(non_camel_case_types)];
|
#[allow(non_camel_case_types)];
|
||||||
|
|
||||||
extern mod std;
|
#[no_std];
|
||||||
|
|
||||||
|
extern mod core(name = "std", vers = "0.7-pre");
|
||||||
|
extern mod std(name = "extra", vers = "0.7-pre");
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
use core::*;
|
use core::*;
|
||||||
|
|
||||||
|
|
||||||
use std::getopts;
|
use std::getopts;
|
||||||
use std::test;
|
use std::test;
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
pub struct ExpectedError { line: uint, kind: ~str, msg: ~str }
|
pub struct ExpectedError { line: uint, kind: ~str, msg: ~str }
|
||||||
|
|
||||||
// Load any test directives embedded in the file
|
// Load any test directives embedded in the file
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use common;
|
use common;
|
||||||
use common::config;
|
use common::config;
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::libc::c_int;
|
use core::libc::c_int;
|
||||||
use core::run::spawn_process;
|
use core::run::spawn_process;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use common::mode_run_pass;
|
use common::mode_run_pass;
|
||||||
use common::mode_run_fail;
|
use common::mode_run_fail;
|
||||||
use common::mode_compile_fail;
|
use common::mode_compile_fail;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use common::config;
|
use common::config;
|
||||||
|
|
||||||
use core::os::getenv;
|
use core::os::getenv;
|
||||||
|
|
|
@ -8,6 +8,11 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[no_core];
|
||||||
|
#[no_std];
|
||||||
|
|
||||||
|
extern mod core(name = "std", vers = "0.7-pre");
|
||||||
|
|
||||||
#[cfg(rustpkg)]
|
#[cfg(rustpkg)]
|
||||||
extern mod this(name = "rustpkg");
|
extern mod this(name = "rustpkg");
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,8 @@
|
||||||
* ~~~
|
* ~~~
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use sync;
|
use sync;
|
||||||
use sync::{Mutex, mutex_with_condvars, RWlock, rwlock_with_condvars};
|
use sync::{Mutex, mutex_with_condvars, RWlock, rwlock_with_condvars};
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,8 @@
|
||||||
// overhead when initializing plain-old-data and means we don't need
|
// overhead when initializing plain-old-data and means we don't need
|
||||||
// to waste time running the destructors of POD.
|
// to waste time running the destructors of POD.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use list::{MutList, MutCons, MutNil};
|
use list::{MutList, MutCons, MutNil};
|
||||||
|
|
||||||
use core::at_vec;
|
use core::at_vec;
|
||||||
|
|
|
@ -10,6 +10,12 @@
|
||||||
|
|
||||||
//! Base64 binary-to-text encoding
|
//! Base64 binary-to-text encoding
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
|
use core::old_iter;
|
||||||
|
use core::str;
|
||||||
|
use core::vec;
|
||||||
|
|
||||||
pub trait ToBase64 {
|
pub trait ToBase64 {
|
||||||
fn to_base64(&self) -> ~str;
|
fn to_base64(&self) -> ~str;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::vec::from_elem;
|
use core::vec::from_elem;
|
||||||
|
|
||||||
struct SmallBitv {
|
struct SmallBitv {
|
||||||
|
|
|
@ -36,6 +36,8 @@
|
||||||
* still held if needed.
|
* still held if needed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The type representing a foreign chunk of memory
|
* The type representing a foreign chunk of memory
|
||||||
*
|
*
|
||||||
|
|
|
@ -14,6 +14,8 @@ Higher level communication abstractions.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::comm::{GenericChan, GenericSmartChan, GenericPort};
|
use core::comm::{GenericChan, GenericSmartChan, GenericPort};
|
||||||
use core::comm::{Chan, Port, Selectable, Peekable};
|
use core::comm::{Chan, Port, Selectable, Peekable};
|
||||||
use core::pipes;
|
use core::pipes;
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
//! A double-ended queue implemented as a circular buffer
|
//! A double-ended queue implemented as a circular buffer
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::util::replace;
|
use core::util::replace;
|
||||||
|
|
||||||
static initial_capacity: uint = 32u; // 2^5
|
static initial_capacity: uint = 32u; // 2^5
|
||||||
|
|
|
@ -18,6 +18,8 @@ Do not use ==, !=, <, etc on doubly-linked lists -- it may not terminate.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::managed;
|
use core::managed;
|
||||||
|
|
||||||
pub type DListLink<T> = Option<@mut DListNode<T>>;
|
pub type DListLink<T> = Option<@mut DListNode<T>>;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
// Simple Extensible Binary Markup Language (ebml) reader and writer on a
|
// Simple Extensible Binary Markup Language (ebml) reader and writer on a
|
||||||
// cursor model. See the specification here:
|
// cursor model. See the specification here:
|
||||||
// http://www.matroska.org/technical/specs/rfc/index.html
|
// http://www.matroska.org/technical/specs/rfc/index.html
|
||||||
|
@ -65,6 +67,8 @@ pub enum EbmlEncoderTag {
|
||||||
// --------------------------------------
|
// --------------------------------------
|
||||||
|
|
||||||
pub mod reader {
|
pub mod reader {
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use ebml::{Doc, EbmlEncoderTag, EsBool, EsEnum, EsEnumBody, EsEnumVid};
|
use ebml::{Doc, EbmlEncoderTag, EsBool, EsEnum, EsEnumBody, EsEnumVid};
|
||||||
use ebml::{EsI16, EsI32, EsI64, EsI8, EsInt};
|
use ebml::{EsI16, EsI32, EsI64, EsI8, EsInt};
|
||||||
use ebml::{EsLabel, EsOpaque, EsStr, EsU16, EsU32, EsU64, EsU8, EsUint};
|
use ebml::{EsLabel, EsOpaque, EsStr, EsU16, EsU32, EsU64, EsU8, EsUint};
|
||||||
|
|
|
@ -94,6 +94,8 @@ total line count).
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::io::ReaderUtil;
|
use core::io::ReaderUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -14,9 +14,9 @@ Simple compression
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use libc;
|
|
||||||
use core::libc::{c_void, size_t, c_int};
|
use core::libc::{c_void, size_t, c_int};
|
||||||
use vec;
|
use core::libc;
|
||||||
|
use core::vec;
|
||||||
|
|
||||||
#[cfg(test)] use core::rand;
|
#[cfg(test)] use core::rand;
|
||||||
#[cfg(test)] use core::rand::RngUtil;
|
#[cfg(test)] use core::rand::RngUtil;
|
||||||
|
|
|
@ -47,6 +47,8 @@ block the scheduler thread, so will their pipes.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
// The basic send/recv interface FlatChan and PortChan will implement
|
// The basic send/recv interface FlatChan and PortChan will implement
|
||||||
use core::io;
|
use core::io;
|
||||||
use core::comm::GenericChan;
|
use core::comm::GenericChan;
|
||||||
|
@ -168,6 +170,8 @@ POD are not equivelant.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
pub mod pod {
|
pub mod pod {
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use flatpipes::flatteners::{PodUnflattener, PodFlattener};
|
use flatpipes::flatteners::{PodUnflattener, PodFlattener};
|
||||||
use flatpipes::bytepipes::{ReaderBytePort, WriterByteChan};
|
use flatpipes::bytepipes::{ReaderBytePort, WriterByteChan};
|
||||||
use flatpipes::bytepipes::{PipeBytePort, PipeByteChan};
|
use flatpipes::bytepipes::{PipeBytePort, PipeByteChan};
|
||||||
|
@ -331,6 +335,8 @@ pub impl<T,F:Flattener<T>,C:ByteChan> FlatChan<T, F, C> {
|
||||||
|
|
||||||
|
|
||||||
pub mod flatteners {
|
pub mod flatteners {
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use ebml;
|
use ebml;
|
||||||
use flatpipes::{Flattener, Unflattener};
|
use flatpipes::{Flattener, Unflattener};
|
||||||
use io_util::BufReader;
|
use io_util::BufReader;
|
||||||
|
@ -501,6 +507,8 @@ pub mod flatteners {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub mod bytepipes {
|
pub mod bytepipes {
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use flatpipes::{ByteChan, BytePort};
|
use flatpipes::{ByteChan, BytePort};
|
||||||
|
|
||||||
use core::io::{Writer, Reader, ReaderUtil};
|
use core::io::{Writer, Reader, ReaderUtil};
|
||||||
|
@ -628,6 +636,8 @@ pub mod bytepipes {
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod test {
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use flatpipes::{Flattener, Unflattener};
|
use flatpipes::{Flattener, Unflattener};
|
||||||
use flatpipes::bytepipes::*;
|
use flatpipes::bytepipes::*;
|
||||||
use flatpipes::pod;
|
use flatpipes::pod;
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
* of features.
|
* of features.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::cmp::{Eq, Ord};
|
use core::cmp::{Eq, Ord};
|
||||||
use core::option::{Some, None};
|
use core::option::{Some, None};
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
* ~~~
|
* ~~~
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::cast;
|
use core::cast;
|
||||||
use core::cell::Cell;
|
use core::cell::Cell;
|
||||||
use core::comm::{PortOne, oneshot, send_one, recv_one};
|
use core::comm::{PortOne, oneshot, send_one, recv_one};
|
||||||
|
|
|
@ -78,6 +78,8 @@
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::cmp::Eq;
|
use core::cmp::Eq;
|
||||||
use core::result::{Err, Ok};
|
use core::result::{Err, Ok};
|
||||||
use core::result;
|
use core::result;
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
|
|
||||||
//! json serialization
|
//! json serialization
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::io::{WriterUtil, ReaderUtil};
|
use core::io::{WriterUtil, ReaderUtil};
|
||||||
use core::hashmap::HashMap;
|
use core::hashmap::HashMap;
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
//! A standard linked list
|
//! A standard linked list
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
#[deriving(Eq)]
|
#[deriving(Eq)]
|
||||||
pub enum List<T> {
|
pub enum List<T> {
|
||||||
Cons(T, @List<T>),
|
Cons(T, @List<T>),
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::str;
|
use core::str;
|
||||||
use core::uint;
|
use core::uint;
|
||||||
use core::vec;
|
use core::vec;
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
//! Types/fns concerning Internet Protocol (IP), versions 4 & 6
|
//! Types/fns concerning Internet Protocol (IP), versions 4 & 6
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::libc;
|
use core::libc;
|
||||||
use core::comm::{stream, SharedChan};
|
use core::comm::{stream, SharedChan};
|
||||||
use core::ptr;
|
use core::ptr;
|
||||||
|
@ -145,6 +147,8 @@ pub fn get_addr(node: &str, iotask: &iotask)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub mod v4 {
|
pub mod v4 {
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use net::ip::{IpAddr, Ipv4, ParseAddrErr};
|
use net::ip::{IpAddr, Ipv4, ParseAddrErr};
|
||||||
use uv::ll;
|
use uv::ll;
|
||||||
use uv_ip4_addr = uv::ll::ip4_addr;
|
use uv_ip4_addr = uv::ll::ip4_addr;
|
||||||
|
@ -246,6 +250,8 @@ pub mod v4 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub mod v6 {
|
pub mod v6 {
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use net::ip::{IpAddr, Ipv6, ParseAddrErr};
|
use net::ip::{IpAddr, Ipv6, ParseAddrErr};
|
||||||
use uv_ip6_addr = uv::ll::ip6_addr;
|
use uv_ip6_addr = uv::ll::ip6_addr;
|
||||||
use uv_ip6_name = uv::ll::ip6_name;
|
use uv_ip6_name = uv::ll::ip6_name;
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
//! High-level interface to libuv's TCP functionality
|
//! High-level interface to libuv's TCP functionality
|
||||||
// FIXME #4425: Need FFI fixes
|
// FIXME #4425: Need FFI fixes
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use future;
|
use future;
|
||||||
use future_spawn = future::spawn;
|
use future_spawn = future::spawn;
|
||||||
use ip = net_ip;
|
use ip = net_ip;
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
//! Types/fns concerning URLs (see RFC 3986)
|
//! Types/fns concerning URLs (see RFC 3986)
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::cmp::Eq;
|
use core::cmp::Eq;
|
||||||
use core::io::{Reader, ReaderUtil};
|
use core::io::{Reader, ReaderUtil};
|
||||||
use core::io;
|
use core::io;
|
||||||
|
|
|
@ -16,6 +16,8 @@ A BigUint is represented as an array of BigDigits.
|
||||||
A BigInt is a combination of BigUint and Sign.
|
A BigInt is a combination of BigUint and Sign.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::cmp::{Eq, Ord, TotalEq, TotalOrd, Ordering, Less, Equal, Greater};
|
use core::cmp::{Eq, Ord, TotalEq, TotalOrd, Ordering, Less, Equal, Greater};
|
||||||
use core::num::{IntConvertible, Zero, One, ToStrRadix, FromStrRadix, Orderable};
|
use core::num::{IntConvertible, Zero, One, ToStrRadix, FromStrRadix, Orderable};
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
|
|
||||||
//! Complex numbers.
|
//! Complex numbers.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::num::{Zero,One,ToStrRadix};
|
use core::num::{Zero,One,ToStrRadix};
|
||||||
|
|
||||||
// FIXME #1284: handle complex NaN & infinity etc. This
|
// FIXME #1284: handle complex NaN & infinity etc. This
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
|
|
||||||
//! Rational numbers
|
//! Rational numbers
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::num::{Zero,One,ToStrRadix,FromStrRadix,Round};
|
use core::num::{Zero,One,ToStrRadix,FromStrRadix,Round};
|
||||||
use core::from_str::FromStr;
|
use core::from_str::FromStr;
|
||||||
use super::bigint::BigInt;
|
use super::bigint::BigInt;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use future_spawn = future::spawn;
|
use future_spawn = future::spawn;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
//! A priority queue implemented with a binary heap
|
//! A priority queue implemented with a binary heap
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::old_iter::BaseIter;
|
use core::old_iter::BaseIter;
|
||||||
use core::unstable::intrinsics::{move_val_init, init};
|
use core::unstable::intrinsics::{move_val_init, init};
|
||||||
use core::unstable::intrinsics::uninit;
|
use core::unstable::intrinsics::uninit;
|
||||||
|
|
|
@ -19,6 +19,8 @@ cycle cannot be created with `Rc<T>` because there is no way to modify it after
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::libc::{c_void, size_t, malloc, free};
|
use core::libc::{c_void, size_t, malloc, free};
|
||||||
use core::unstable::intrinsics;
|
use core::unstable::intrinsics;
|
||||||
use core::util;
|
use core::util;
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
// FIXME #3921. This is unsafe because linenoise uses global mutable
|
// FIXME #3921. This is unsafe because linenoise uses global mutable
|
||||||
// state without mutexes.
|
// state without mutexes.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::libc::{c_char, c_int};
|
use core::libc::{c_char, c_int};
|
||||||
|
|
||||||
pub mod rustrt {
|
pub mod rustrt {
|
||||||
|
|
|
@ -33,6 +33,8 @@
|
||||||
* * access to a character by index is logarithmic (linear in strings);
|
* * access to a character by index is logarithmic (linear in strings);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
/// The type of ropes.
|
/// The type of ropes.
|
||||||
pub type Rope = node::Root;
|
pub type Rope = node::Root;
|
||||||
|
|
||||||
|
@ -439,8 +441,9 @@ pub fn loop_leaves(rope: Rope, it: &fn(node::Leaf) -> bool) -> bool{
|
||||||
|
|
||||||
pub mod iterator {
|
pub mod iterator {
|
||||||
pub mod leaf {
|
pub mod leaf {
|
||||||
use rope::{Rope, node};
|
use core::prelude::*;
|
||||||
|
|
||||||
|
use rope::{Rope, node};
|
||||||
|
|
||||||
pub fn start(rope: Rope) -> node::leaf_iterator::T {
|
pub fn start(rope: Rope) -> node::leaf_iterator::T {
|
||||||
match (rope) {
|
match (rope) {
|
||||||
|
@ -453,8 +456,9 @@ pub mod iterator {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub mod char {
|
pub mod char {
|
||||||
use rope::{Rope, node};
|
use core::prelude::*;
|
||||||
|
|
||||||
|
use rope::{Rope, node};
|
||||||
|
|
||||||
pub fn start(rope: Rope) -> node::char_iterator::T {
|
pub fn start(rope: Rope) -> node::char_iterator::T {
|
||||||
match (rope) {
|
match (rope) {
|
||||||
|
@ -548,6 +552,8 @@ pub fn char_at(rope: Rope, pos: uint) -> char {
|
||||||
Section: Implementation
|
Section: Implementation
|
||||||
*/
|
*/
|
||||||
pub mod node {
|
pub mod node {
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use rope::node;
|
use rope::node;
|
||||||
|
|
||||||
/// Implementation of type `rope`
|
/// Implementation of type `rope`
|
||||||
|
@ -1127,6 +1133,8 @@ pub mod node {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub mod leaf_iterator {
|
pub mod leaf_iterator {
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use rope::node::{Concat, Leaf, Node, height};
|
use rope::node::{Concat, Leaf, Node, height};
|
||||||
|
|
||||||
pub struct T {
|
pub struct T {
|
||||||
|
@ -1166,6 +1174,8 @@ pub mod node {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub mod char_iterator {
|
pub mod char_iterator {
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use rope::node::{Leaf, Node};
|
use rope::node::{Leaf, Node};
|
||||||
use rope::node::leaf_iterator;
|
use rope::node::leaf_iterator;
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
//! Semver parsing and logic
|
//! Semver parsing and logic
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::char;
|
use core::char;
|
||||||
use core::cmp;
|
use core::cmp;
|
||||||
use core::io::{ReaderUtil};
|
use core::io::{ReaderUtil};
|
||||||
|
|
|
@ -16,6 +16,8 @@ Core encoding and decoding interfaces.
|
||||||
|
|
||||||
#[forbid(non_camel_case_types)];
|
#[forbid(non_camel_case_types)];
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::hashmap::{HashMap, HashSet};
|
use core::hashmap::{HashMap, HashSet};
|
||||||
use core::trie::{TrieMap, TrieSet};
|
use core::trie::{TrieMap, TrieSet};
|
||||||
use deque::Deque;
|
use deque::Deque;
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
* the `reset` method.
|
* the `reset` method.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::str;
|
use core::str;
|
||||||
use core::uint;
|
use core::uint;
|
||||||
use core::vec;
|
use core::vec;
|
||||||
|
|
|
@ -13,6 +13,8 @@
|
||||||
* are O(highest integer key).
|
* are O(highest integer key).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::container::{Container, Mutable, Map, Set};
|
use core::container::{Container, Mutable, Map, Set};
|
||||||
use core::old_iter::BaseIter;
|
use core::old_iter::BaseIter;
|
||||||
use core::old_iter;
|
use core::old_iter;
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
//! Sorting methods
|
//! Sorting methods
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::cmp::{Eq, Ord};
|
use core::cmp::{Eq, Ord};
|
||||||
use core::vec::len;
|
use core::vec::len;
|
||||||
use core::vec;
|
use core::vec;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::vec;
|
use core::vec;
|
||||||
use core::f64;
|
use core::f64;
|
||||||
use core::cmp;
|
use core::cmp;
|
||||||
|
|
|
@ -17,7 +17,7 @@ not required in or otherwise suitable for the core library.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#[link(name = "std",
|
#[link(name = "extra",
|
||||||
vers = "0.7-pre",
|
vers = "0.7-pre",
|
||||||
uuid = "122bed0b-c19b-4b82-b0b7-7ae8aead7297",
|
uuid = "122bed0b-c19b-4b82-b0b7-7ae8aead7297",
|
||||||
url = "https://github.com/mozilla/rust/tree/master/src/libstd")];
|
url = "https://github.com/mozilla/rust/tree/master/src/libstd")];
|
||||||
|
@ -28,6 +28,14 @@ not required in or otherwise suitable for the core library.
|
||||||
|
|
||||||
#[deny(non_camel_case_types)];
|
#[deny(non_camel_case_types)];
|
||||||
|
|
||||||
|
#[no_core];
|
||||||
|
#[no_std];
|
||||||
|
|
||||||
|
extern mod core(name = "std", vers = "0.7-pre");
|
||||||
|
|
||||||
|
use core::{str, unstable};
|
||||||
|
use core::str::{StrSlice, OwnedStr};
|
||||||
|
|
||||||
pub mod uv_ll;
|
pub mod uv_ll;
|
||||||
|
|
||||||
// General io and system-services modules
|
// General io and system-services modules
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
* in std.
|
* in std.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::unstable::sync::{Exclusive, exclusive};
|
use core::unstable::sync::{Exclusive, exclusive};
|
||||||
use core::ptr;
|
use core::ptr;
|
||||||
use core::task;
|
use core::task;
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
/// A task pool abstraction. Useful for achieving predictable CPU
|
/// A task pool abstraction. Useful for achieving predictable CPU
|
||||||
/// parallelism.
|
/// parallelism.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::comm::Chan;
|
use core::comm::Chan;
|
||||||
use core::task::SchedMode;
|
use core::task::SchedMode;
|
||||||
use core::task;
|
use core::task;
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
//! Temporary files and directories
|
//! Temporary files and directories
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::rand::RngUtil;
|
use core::rand::RngUtil;
|
||||||
|
|
||||||
pub fn mkdtemp(tmpdir: &Path, suffix: &str) -> Option<Path> {
|
pub fn mkdtemp(tmpdir: &Path, suffix: &str) -> Option<Path> {
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
//! Simple ANSI color library
|
//! Simple ANSI color library
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::io;
|
use core::io;
|
||||||
use core::option;
|
use core::option;
|
||||||
use core::os;
|
use core::os;
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
// simplest interface possible for representing and running tests
|
// simplest interface possible for representing and running tests
|
||||||
// while providing a base that other test frameworks may build off of.
|
// while providing a base that other test frameworks may build off of.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use getopts;
|
use getopts;
|
||||||
use sort;
|
use sort;
|
||||||
use term;
|
use term;
|
||||||
|
@ -597,6 +599,8 @@ fn calc_result(desc: &TestDesc, task_succeeded: bool) -> TestResult {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub mod bench {
|
pub mod bench {
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use time::precise_time_ns;
|
use time::precise_time_ns;
|
||||||
use test::{BenchHarness, BenchSamples};
|
use test::{BenchHarness, BenchSamples};
|
||||||
use stats::Stats;
|
use stats::Stats;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
static NSEC_PER_SEC: i32 = 1_000_000_000_i32;
|
static NSEC_PER_SEC: i32 = 1_000_000_000_i32;
|
||||||
|
|
||||||
pub mod rustrt {
|
pub mod rustrt {
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
//! Utilities that leverage libuv's `uv_timer_*` API
|
//! Utilities that leverage libuv's `uv_timer_*` API
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use uv;
|
use uv;
|
||||||
use uv::iotask;
|
use uv::iotask;
|
||||||
use uv::iotask::IoTask;
|
use uv::iotask::IoTask;
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
//! trees. The only requirement for the types is that the key implements
|
//! trees. The only requirement for the types is that the key implements
|
||||||
//! `TotalOrd`.
|
//! `TotalOrd`.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::iterator::*;
|
use core::iterator::*;
|
||||||
use core::util::{swap, replace};
|
use core::util::{swap, replace};
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
//! A process-wide libuv event loop for library use.
|
//! A process-wide libuv event loop for library use.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use iotask = uv_iotask;
|
use iotask = uv_iotask;
|
||||||
use uv_iotask::{IoTask, spawn_iotask};
|
use uv_iotask::{IoTask, spawn_iotask};
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
* `interact` function you can execute code in a uv callback.
|
* `interact` function you can execute code in a uv callback.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use ll = uv_ll;
|
use ll = uv_ll;
|
||||||
|
|
||||||
use core::comm::{stream, Port, Chan, SharedChan};
|
use core::comm::{stream, Port, Chan, SharedChan};
|
||||||
|
|
|
@ -32,6 +32,8 @@
|
||||||
|
|
||||||
#[allow(non_camel_case_types)]; // C types
|
#[allow(non_camel_case_types)]; // C types
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::libc::size_t;
|
use core::libc::size_t;
|
||||||
use core::libc::c_void;
|
use core::libc::c_void;
|
||||||
use core::ptr::to_unsafe_ptr;
|
use core::ptr::to_unsafe_ptr;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use json;
|
use json;
|
||||||
use sha1;
|
use sha1;
|
||||||
use serialize::{Encoder, Encodable, Decoder, Decodable};
|
use serialize::{Encoder, Encodable, Decoder, Decodable};
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use std;
|
use std;
|
||||||
use vec;
|
use vec;
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use std;
|
use std;
|
||||||
use std::rand;
|
use std::rand;
|
||||||
use uint::range;
|
use uint::range;
|
||||||
|
|
|
@ -20,9 +20,14 @@
|
||||||
|
|
||||||
#[allow(non_camel_case_types)];
|
#[allow(non_camel_case_types)];
|
||||||
|
|
||||||
extern mod std;
|
#[no_std];
|
||||||
extern mod syntax;
|
|
||||||
|
|
||||||
|
extern mod core(name = "std", vers = "0.7-pre");
|
||||||
|
extern mod std(name = "extra", vers = "0.7-pre");
|
||||||
|
|
||||||
|
extern mod syntax(vers = "0.7-pre");
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
use core::run;
|
use core::run;
|
||||||
|
|
||||||
use syntax::diagnostic;
|
use syntax::diagnostic;
|
||||||
|
|
|
@ -28,7 +28,8 @@ vec_edits is not an iter because iters might go away.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern mod std;
|
use core::prelude::*;
|
||||||
|
|
||||||
use vec::slice;
|
use vec::slice;
|
||||||
use vec::len;
|
use vec::len;
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
extern mod std;
|
use core::prelude::*;
|
||||||
use std::rand;
|
use std::rand;
|
||||||
|
|
||||||
// random uint less than n
|
// random uint less than n
|
||||||
|
|
|
@ -20,11 +20,17 @@
|
||||||
#[license = "MIT/ASL2"];
|
#[license = "MIT/ASL2"];
|
||||||
#[crate_type = "lib"];
|
#[crate_type = "lib"];
|
||||||
|
|
||||||
|
#[no_std];
|
||||||
|
|
||||||
|
extern mod core(name = "std");
|
||||||
|
|
||||||
extern mod rustpkg;
|
extern mod rustpkg;
|
||||||
extern mod rustdoc;
|
extern mod rustdoc;
|
||||||
extern mod rusti;
|
extern mod rusti;
|
||||||
extern mod rustc;
|
extern mod rustc;
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::run;
|
use core::run;
|
||||||
|
|
||||||
enum ValidUsage {
|
enum ValidUsage {
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use back::rpath;
|
use back::rpath;
|
||||||
use driver::session::Session;
|
use driver::session::Session;
|
||||||
use driver::session;
|
use driver::session;
|
||||||
|
@ -90,6 +92,8 @@ pub fn WriteOutputFile(sess: Session,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub mod jit {
|
pub mod jit {
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use back::link::llvm_err;
|
use back::link::llvm_err;
|
||||||
use driver::session::Session;
|
use driver::session::Session;
|
||||||
use lib::llvm::llvm;
|
use lib::llvm::llvm;
|
||||||
|
@ -166,6 +170,8 @@ pub mod jit {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub mod write {
|
pub mod write {
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use back::link::jit;
|
use back::link::jit;
|
||||||
use back::link::{WriteOutputFile, output_type};
|
use back::link::{WriteOutputFile, output_type};
|
||||||
use back::link::{output_type_assembly, output_type_bitcode};
|
use back::link::{output_type_assembly, output_type_bitcode};
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use driver::session;
|
use driver::session;
|
||||||
use metadata::cstore;
|
use metadata::cstore;
|
||||||
use metadata::filesearch;
|
use metadata::filesearch;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use back::link;
|
use back::link;
|
||||||
use back::{arm, x86, x86_64, mips};
|
use back::{arm, x86, x86_64, mips};
|
||||||
use driver::session::{Aggressive};
|
use driver::session::{Aggressive};
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use back::link;
|
use back::link;
|
||||||
use back::target_strs;
|
use back::target_strs;
|
||||||
use back;
|
use back;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use syntax::{ast, fold, attr};
|
use syntax::{ast, fold, attr};
|
||||||
|
|
||||||
type in_cfg_pred = @fn(attrs: ~[ast::attribute]) -> bool;
|
type in_cfg_pred = @fn(attrs: ~[ast::attribute]) -> bool;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use driver::session::Session;
|
use driver::session::Session;
|
||||||
use syntax::parse;
|
use syntax::parse;
|
||||||
use syntax::ast;
|
use syntax::ast;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use driver::session::Session;
|
use driver::session::Session;
|
||||||
|
|
||||||
use syntax::ast;
|
use syntax::ast;
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
// Code that generates a test runner to run all the tests in a crate
|
// Code that generates a test runner to run all the tests in a crate
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use driver::session;
|
use driver::session;
|
||||||
use front::config;
|
use front::config;
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::hashmap::HashMap;
|
use core::hashmap::HashMap;
|
||||||
use core::libc::{c_uint, c_ushort};
|
use core::libc::{c_uint, c_ushort};
|
||||||
|
|
||||||
|
|
|
@ -8,9 +8,10 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
|
||||||
//! Validates all used crates and extern libraries and loads their metadata
|
//! Validates all used crates and extern libraries and loads their metadata
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use metadata::cstore;
|
use metadata::cstore;
|
||||||
use metadata::decoder;
|
use metadata::decoder;
|
||||||
use metadata::filesearch::FileSearch;
|
use metadata::filesearch::FileSearch;
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
// Searching for information from the cstore
|
// Searching for information from the cstore
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use metadata::common::*;
|
use metadata::common::*;
|
||||||
use metadata::cstore;
|
use metadata::cstore;
|
||||||
use metadata::decoder;
|
use metadata::decoder;
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
// The crate store - a central repo for information collected about external
|
// The crate store - a central repo for information collected about external
|
||||||
// crates and libraries
|
// crates and libraries
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use metadata::cstore;
|
use metadata::cstore;
|
||||||
use metadata::decoder;
|
use metadata::decoder;
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
// Decoding metadata from a single crate's metadata
|
// Decoding metadata from a single crate's metadata
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use metadata::cstore::crate_metadata;
|
use metadata::cstore::crate_metadata;
|
||||||
use metadata::common::*;
|
use metadata::common::*;
|
||||||
use metadata::csearch::{ProvidedTraitMethodInfo, StaticMethodInfo};
|
use metadata::csearch::{ProvidedTraitMethodInfo, StaticMethodInfo};
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
// Metadata encoding
|
// Metadata encoding
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use metadata::common::*;
|
use metadata::common::*;
|
||||||
use metadata::cstore;
|
use metadata::cstore;
|
||||||
use metadata::decoder;
|
use metadata::decoder;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
// A module for searching for libraries
|
// A module for searching for libraries
|
||||||
// FIXME (#2658): I'm not happy how this module turned out. Should
|
// FIXME (#2658): I'm not happy how this module turned out. Should
|
||||||
// probably just be folded into cstore.
|
// probably just be folded into cstore.
|
||||||
|
|
|
@ -8,9 +8,10 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
|
||||||
//! Finds crate binaries and loads their metadata
|
//! Finds crate binaries and loads their metadata
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use lib::llvm::{False, llvm, mk_object_file, mk_section_iter};
|
use lib::llvm::{False, llvm, mk_object_file, mk_section_iter};
|
||||||
use metadata::decoder;
|
use metadata::decoder;
|
||||||
use metadata::encoder;
|
use metadata::encoder;
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
// tjc note: Would be great to have a `match check` macro equivalent
|
// tjc note: Would be great to have a `match check` macro equivalent
|
||||||
// for some of these
|
// for some of these
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use middle::ty;
|
use middle::ty;
|
||||||
|
|
||||||
use syntax::abi::AbiSet;
|
use syntax::abi::AbiSet;
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
// Type encoding
|
// Type encoding
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use middle::ty::param_ty;
|
use middle::ty::param_ty;
|
||||||
use middle::ty;
|
use middle::ty;
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use c = metadata::common;
|
use c = metadata::common;
|
||||||
use cstore = metadata::cstore;
|
use cstore = metadata::cstore;
|
||||||
use driver::session::Session;
|
use driver::session::Session;
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
// 3. assignments do not affect things loaned out as immutable
|
// 3. assignments do not affect things loaned out as immutable
|
||||||
// 4. moves do not affect things loaned out in any way
|
// 4. moves do not affect things loaned out in any way
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use middle::moves;
|
use middle::moves;
|
||||||
use middle::borrowck::*;
|
use middle::borrowck::*;
|
||||||
use mc = middle::mem_categorization;
|
use mc = middle::mem_categorization;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use driver::session::Session;
|
use driver::session::Session;
|
||||||
use middle::resolve;
|
use middle::resolve;
|
||||||
use middle::ty;
|
use middle::ty;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use middle::const_eval::{compare_const_vals, lookup_const_by_id};
|
use middle::const_eval::{compare_const_vals, lookup_const_by_id};
|
||||||
use middle::const_eval::{eval_const_expr, const_val, const_bool};
|
use middle::const_eval::{eval_const_expr, const_val, const_bool};
|
||||||
use middle::pat_util::*;
|
use middle::pat_util::*;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use metadata::csearch;
|
use metadata::csearch;
|
||||||
use middle::astencode;
|
use middle::astencode;
|
||||||
use middle::ty;
|
use middle::ty;
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
* GEN and KILL bits for each expression.
|
* GEN and KILL bits for each expression.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use core::cast;
|
use core::cast;
|
||||||
use core::uint;
|
use core::uint;
|
||||||
use syntax::ast;
|
use syntax::ast;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use driver::session;
|
use driver::session;
|
||||||
use driver::session::Session;
|
use driver::session::Session;
|
||||||
use syntax::parse::token::special_idents;
|
use syntax::parse::token::special_idents;
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
// A pass that annotates for each loops and functions with the free
|
// A pass that annotates for each loops and functions with the free
|
||||||
// variables that they contain.
|
// variables that they contain.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use middle::resolve;
|
use middle::resolve;
|
||||||
use middle::ty;
|
use middle::ty;
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use middle::freevars::freevar_entry;
|
use middle::freevars::freevar_entry;
|
||||||
use middle::freevars;
|
use middle::freevars;
|
||||||
use middle::pat_util;
|
use middle::pat_util;
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
//
|
//
|
||||||
// * Functions called by the compiler itself.
|
// * Functions called by the compiler itself.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use driver::session::Session;
|
use driver::session::Session;
|
||||||
use metadata::csearch::each_lang_item;
|
use metadata::csearch::each_lang_item;
|
||||||
use metadata::cstore::iter_crate_data;
|
use metadata::cstore::iter_crate_data;
|
||||||
|
|
|
@ -8,6 +8,9 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
|
use driver::session::Session;
|
||||||
use driver::session;
|
use driver::session;
|
||||||
use middle::ty;
|
use middle::ty;
|
||||||
use middle::pat_util;
|
use middle::pat_util;
|
||||||
|
|
|
@ -102,6 +102,7 @@
|
||||||
* to return explicitly.
|
* to return explicitly.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use middle::lint::{unused_variable, dead_assignment};
|
use middle::lint::{unused_variable, dead_assignment};
|
||||||
use middle::pat_util;
|
use middle::pat_util;
|
||||||
|
|
|
@ -46,6 +46,8 @@
|
||||||
* then an index to jump forward to the relevant item.
|
* then an index to jump forward to the relevant item.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use middle::ty;
|
use middle::ty;
|
||||||
use middle::typeck;
|
use middle::typeck;
|
||||||
use util::ppaux::{ty_to_str, region_to_str, Repr};
|
use util::ppaux::{ty_to_str, region_to_str, Repr};
|
||||||
|
|
|
@ -206,6 +206,8 @@ and so on.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use middle::pat_util::{pat_bindings};
|
use middle::pat_util::{pat_bindings};
|
||||||
use middle::freevars;
|
use middle::freevars;
|
||||||
use middle::ty;
|
use middle::ty;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use middle::resolve;
|
use middle::resolve;
|
||||||
|
|
||||||
use core::hashmap::HashMap;
|
use core::hashmap::HashMap;
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
// A pass that checks to make sure private fields and methods aren't used
|
// A pass that checks to make sure private fields and methods aren't used
|
||||||
// outside their scopes.
|
// outside their scopes.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use metadata::csearch;
|
use metadata::csearch;
|
||||||
use middle::ty::{ty_struct, ty_enum};
|
use middle::ty::{ty_struct, ty_enum};
|
||||||
use middle::ty;
|
use middle::ty;
|
||||||
|
|
|
@ -17,6 +17,8 @@ region parameterized.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use driver::session::Session;
|
use driver::session::Session;
|
||||||
use metadata::csearch;
|
use metadata::csearch;
|
||||||
use middle::resolve;
|
use middle::resolve;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use driver::session::Session;
|
use driver::session::Session;
|
||||||
use metadata::csearch::{each_path, get_trait_method_def_ids};
|
use metadata::csearch::{each_path, get_trait_method_def_ids};
|
||||||
use metadata::csearch::get_method_name_and_explicit_self;
|
use metadata::csearch::get_method_name_and_explicit_self;
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
// Type substitutions.
|
// Type substitutions.
|
||||||
|
|
||||||
|
use core::prelude::*;
|
||||||
|
|
||||||
use middle::ty;
|
use middle::ty;
|
||||||
use util::ppaux::Repr;
|
use util::ppaux::Repr;
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue