Removed prelude::* from libstd files.
This replaces the imports from the prelude with the re-exported symbols.
This commit is contained in:
parent
c3ccaacc6c
commit
813886b22c
@ -18,9 +18,9 @@ use str::OwnedStr;
|
||||
use container::Container;
|
||||
use cast;
|
||||
use iter::Iterator;
|
||||
use vec::{ImmutableVector, MutableVector, Vector};
|
||||
use vec::{ImmutableVector,MutableVector,Vector};
|
||||
use to_bytes::IterBytes;
|
||||
use option::{Option, Some, None};
|
||||
use option::{Option,Some,None};
|
||||
|
||||
/// Datatype to hold one ascii character. It wraps a `u8`, with the highest bit always zero.
|
||||
#[deriving(Clone, Eq, Ord, TotalOrd, TotalEq)]
|
||||
|
@ -10,7 +10,10 @@
|
||||
|
||||
//! Types dealing with dynamic mutability
|
||||
|
||||
use prelude::*;
|
||||
use clone::{Clone,DeepClone};
|
||||
use cmp::Eq;
|
||||
use ops::Drop;
|
||||
use option::{None,Option,Some};
|
||||
use cast;
|
||||
use kinds::{marker, Pod};
|
||||
|
||||
|
@ -41,7 +41,9 @@ local_data::get(key_vector, |opt| assert_eq!(*opt.unwrap(), ~[4]));
|
||||
// magic.
|
||||
|
||||
use cast;
|
||||
use prelude::*;
|
||||
use option::{None,Option,Some};
|
||||
use vec::{ImmutableVector,MutableVector,OwnedVector};
|
||||
use iter::{Iterator};
|
||||
use rt::task::{Task, LocalStorage};
|
||||
use util::replace;
|
||||
|
||||
|
@ -28,20 +28,31 @@
|
||||
|
||||
#[allow(missing_doc)];
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
#[cfg(windows)]
|
||||
use iter::range;
|
||||
|
||||
use clone::Clone;
|
||||
use container::Container;
|
||||
#[cfg(target_os = "macos")]
|
||||
use iter::range;
|
||||
use libc;
|
||||
use libc::{c_char, c_void, c_int};
|
||||
use option::{Some, None};
|
||||
use option::{Some, None, Option};
|
||||
use os;
|
||||
use prelude::*;
|
||||
use ops::Drop;
|
||||
use result::{Err, Ok, Result};
|
||||
use ptr;
|
||||
use str;
|
||||
use str::{Str, StrSlice};
|
||||
use fmt;
|
||||
use unstable::finally::Finally;
|
||||
use sync::atomics::{AtomicInt, INIT_ATOMIC_INT, SeqCst};
|
||||
use path::{Path, GenericPath};
|
||||
use iter::Iterator;
|
||||
use vec::{Vector, CloneableVector, ImmutableVector, MutableVector, OwnedVector};
|
||||
use ptr::RawPtr;
|
||||
|
||||
#[cfg(unix)]
|
||||
use c_str::ToCStr;
|
||||
|
||||
/// Delegates to the libc close() function, returning the same return value.
|
||||
pub fn close(fd: int) -> int {
|
||||
@ -396,6 +407,8 @@ pub fn self_exe_name() -> Option<Path> {
|
||||
|
||||
#[cfg(windows)]
|
||||
fn load_self() -> Option<~[u8]> {
|
||||
use str::OwnedStr;
|
||||
|
||||
unsafe {
|
||||
use os::win32::fill_utf16_buf_and_decode;
|
||||
fill_utf16_buf_and_decode(|buf, sz| {
|
||||
@ -967,6 +980,7 @@ impl MemoryMap {
|
||||
/// `ErrZeroLength`.
|
||||
pub fn new(min_len: uint, options: &[MapOption]) -> Result<MemoryMap, MapError> {
|
||||
use libc::off_t;
|
||||
use cmp::Equiv;
|
||||
|
||||
if min_len == 0 {
|
||||
return Err(ErrZeroLength)
|
||||
|
@ -11,7 +11,7 @@
|
||||
//! Utilities for references
|
||||
|
||||
#[cfg(not(test))]
|
||||
use prelude::*;
|
||||
use cmp::{Eq,Ord,Ordering,TotalEq,TotalOrd};
|
||||
|
||||
// Equality for region pointers
|
||||
#[cfg(not(test))]
|
||||
|
@ -20,7 +20,13 @@ use io::process;
|
||||
use io;
|
||||
use libc::{pid_t, c_int};
|
||||
use libc;
|
||||
use prelude::*;
|
||||
use option::{None,Option,Some};
|
||||
use task::spawn;
|
||||
use path::{Path,GenericPath};
|
||||
use result::Ok;
|
||||
use str::Str;
|
||||
use vec::Vector;
|
||||
use clone::Clone;
|
||||
|
||||
/**
|
||||
* A value representing a child process.
|
||||
|
@ -10,12 +10,16 @@
|
||||
|
||||
//! Ordered containers with integer keys, implemented as radix tries (`TrieSet` and `TrieMap` types)
|
||||
|
||||
use prelude::*;
|
||||
use option::{None,Option,Some};
|
||||
use container::{Container,Map,Mutable,MutableMap};
|
||||
use iter::{Extendable,FromIterator,Iterator};
|
||||
use mem;
|
||||
use uint;
|
||||
use util::replace;
|
||||
use unstable::intrinsics::init;
|
||||
use vec;
|
||||
use ptr::RawPtr;
|
||||
use vec::{ImmutableVector,Items,MutableVector,MutItems,OwnedVector};
|
||||
|
||||
// FIXME: #5244: need to manually update the TrieNode constructor
|
||||
static SHIFT: uint = 4;
|
||||
|
@ -11,7 +11,8 @@
|
||||
//! Functions for the unit type.
|
||||
|
||||
#[cfg(not(test))]
|
||||
use prelude::*;
|
||||
use default::Default;
|
||||
use cmp::{Eq,Equal,Ord,Ordering,TotalEq,TotalOrd};
|
||||
|
||||
#[cfg(not(test))]
|
||||
impl Eq for () {
|
||||
|
@ -11,12 +11,16 @@
|
||||
// Migrate documentation over from `std::vec` when it is removed.
|
||||
#[doc(hidden)];
|
||||
|
||||
use prelude::*;
|
||||
use ops::Drop;
|
||||
use option::{None, Option, Some};
|
||||
use clone::Clone;
|
||||
use iter::{DoubleEndedIterator, Iterator};
|
||||
use num::CheckedMul;
|
||||
use container::Container;
|
||||
use mem::size_of;
|
||||
use cast::{forget, transmute};
|
||||
use rt::global_heap::{malloc_raw, realloc_raw};
|
||||
use vec::Items;
|
||||
use vec::{ImmutableVector, Items, MutableVector};
|
||||
use unstable::raw::Slice;
|
||||
use ptr::{offset, read_ptr};
|
||||
use libc::{free, c_void};
|
||||
|
Loading…
x
Reference in New Issue
Block a user