Use `#[prelude_import]` in `libcore`.
This commit is contained in:
parent
308824acec
commit
e2ad3be178
|
@ -72,12 +72,10 @@
|
|||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
use fmt;
|
||||
use marker::Send;
|
||||
use mem::transmute;
|
||||
use option::Option::{self, Some, None};
|
||||
use raw::TraitObject;
|
||||
use intrinsics;
|
||||
use marker::{Reflect, Sized};
|
||||
use marker::Reflect;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Any trait
|
||||
|
|
|
@ -20,16 +20,11 @@
|
|||
issue = "27778")]
|
||||
|
||||
use borrow::{Borrow, BorrowMut};
|
||||
use clone::Clone;
|
||||
use cmp::{PartialEq, Eq, PartialOrd, Ord, Ordering};
|
||||
use convert::{AsRef, AsMut};
|
||||
use default::Default;
|
||||
use cmp::Ordering;
|
||||
use fmt;
|
||||
use hash::{Hash, self};
|
||||
use iter::IntoIterator;
|
||||
use marker::{Copy, Sized, Unsize};
|
||||
use option::Option;
|
||||
use slice::{Iter, IterMut, SliceExt};
|
||||
use marker::Unsize;
|
||||
use slice::{Iter, IterMut};
|
||||
|
||||
/// Utility trait implemented only on arrays of fixed size
|
||||
///
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
use marker::Sized;
|
||||
|
||||
/// A trait for borrowing data.
|
||||
///
|
||||
/// In general, there may be several ways to "borrow" a piece of data. The
|
||||
|
|
|
@ -144,17 +144,10 @@
|
|||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
use clone::Clone;
|
||||
use cmp::{PartialEq, Eq, PartialOrd, Ord, Ordering};
|
||||
use convert::From;
|
||||
use default::Default;
|
||||
use cmp::Ordering;
|
||||
use fmt::{self, Debug, Display};
|
||||
use marker::{Copy, PhantomData, Send, Sync, Sized, Unsize};
|
||||
use ops::{Deref, DerefMut, Drop, FnOnce, CoerceUnsized};
|
||||
use option::Option;
|
||||
use option::Option::{None, Some};
|
||||
use result::Result;
|
||||
use result::Result::{Ok, Err};
|
||||
use marker::{PhantomData, Unsize};
|
||||
use ops::{Deref, DerefMut, CoerceUnsized};
|
||||
|
||||
/// A mutable memory location that admits only `Copy` data.
|
||||
///
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
#![allow(non_snake_case)]
|
||||
#![stable(feature = "core_char", since = "1.2.0")]
|
||||
|
||||
use prelude::v1::*;
|
||||
|
||||
use char_private::is_printable;
|
||||
use iter::FusedIterator;
|
||||
use mem::transmute;
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
// NOTE: The following code was generated by "src/etc/char_private.py",
|
||||
// do not edit directly!
|
||||
|
||||
use slice::SliceExt;
|
||||
|
||||
fn check(x: u16, singletons: &[u16], normal: &[u16]) -> bool {
|
||||
for &s in singletons {
|
||||
if x == s {
|
||||
|
|
|
@ -44,8 +44,6 @@
|
|||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
use marker::Sized;
|
||||
|
||||
/// A common trait for the ability to explicitly duplicate an object.
|
||||
///
|
||||
/// Differs from `Copy` in that `Copy` is implicit and extremely inexpensive, while
|
||||
|
|
|
@ -34,9 +34,6 @@
|
|||
|
||||
use self::Ordering::*;
|
||||
|
||||
use marker::Sized;
|
||||
use option::Option::{self, Some};
|
||||
|
||||
/// Trait for equality comparisons which are [partial equivalence
|
||||
/// relations](http://en.wikipedia.org/wiki/Partial_equivalence_relation).
|
||||
///
|
||||
|
@ -571,11 +568,7 @@ pub fn max<T: Ord>(v1: T, v2: T) -> T {
|
|||
|
||||
// Implementation of PartialEq, Eq, PartialOrd and Ord for primitive types
|
||||
mod impls {
|
||||
use cmp::{PartialOrd, Ord, PartialEq, Eq, Ordering};
|
||||
use cmp::Ordering::{Less, Greater, Equal};
|
||||
use marker::Sized;
|
||||
use option::Option;
|
||||
use option::Option::{Some, None};
|
||||
use cmp::Ordering::{self, Less, Greater, Equal};
|
||||
|
||||
macro_rules! partial_eq_impl {
|
||||
($($t:ty)*) => ($(
|
||||
|
|
|
@ -40,9 +40,6 @@
|
|||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
use marker::Sized;
|
||||
use result::Result;
|
||||
|
||||
/// A cheap, reference-to-reference conversion.
|
||||
///
|
||||
/// `AsRef` is very similar to, but different than, `Borrow`. See
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
use marker::Sized;
|
||||
|
||||
/// A trait for giving a type a useful default value.
|
||||
///
|
||||
/// Sometimes, you want to fall back to some kind of default value, and
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use prelude::v1::*;
|
||||
use fmt::{self, FlagV1};
|
||||
|
||||
struct PadAdapter<'a, 'b: 'a> {
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
use prelude::v1::*;
|
||||
|
||||
use cell::{UnsafeCell, Cell, RefCell, Ref, RefMut, BorrowState};
|
||||
use marker::PhantomData;
|
||||
use mem;
|
||||
|
@ -905,8 +903,6 @@ impl<'a> Formatter<'a> {
|
|||
prefix: &str,
|
||||
buf: &str)
|
||||
-> Result {
|
||||
use char::CharExt;
|
||||
|
||||
let mut width = buf.len();
|
||||
|
||||
let mut sign = None;
|
||||
|
@ -1020,7 +1016,6 @@ impl<'a> Formatter<'a> {
|
|||
f: F) -> Result
|
||||
where F: FnOnce(&mut Formatter) -> Result,
|
||||
{
|
||||
use char::CharExt;
|
||||
let align = match self.align {
|
||||
rt::v1::Alignment::Unknown => default,
|
||||
_ => self.align
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
|
||||
// FIXME: #6220 Implement floating point formatting
|
||||
|
||||
use prelude::v1::*;
|
||||
|
||||
use fmt;
|
||||
use num::Zero;
|
||||
use ops::{Div, Rem, Sub};
|
||||
|
|
|
@ -71,8 +71,6 @@
|
|||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
use prelude::v1::*;
|
||||
|
||||
use fmt;
|
||||
use marker;
|
||||
use mem;
|
||||
|
@ -288,8 +286,6 @@ impl<H> Default for BuildHasherDefault<H> {
|
|||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
mod impls {
|
||||
use prelude::v1::*;
|
||||
|
||||
use mem;
|
||||
use slice;
|
||||
use super::*;
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
//! An implementation of SipHash.
|
||||
|
||||
use prelude::v1::*;
|
||||
|
||||
use marker::PhantomData;
|
||||
use ptr;
|
||||
|
||||
|
|
|
@ -46,8 +46,6 @@
|
|||
issue = "0")]
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use marker::Sized;
|
||||
|
||||
extern "rust-intrinsic" {
|
||||
|
||||
// NB: These intrinsics take raw pointers because they mutate aliased
|
||||
|
|
|
@ -8,19 +8,12 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use clone::Clone;
|
||||
use cmp::{Ord, PartialOrd, PartialEq, Ordering};
|
||||
use default::Default;
|
||||
use ops::FnMut;
|
||||
use option::Option::{self, Some, None};
|
||||
use marker::Sized;
|
||||
use cmp::Ordering;
|
||||
|
||||
use super::{Chain, Cycle, Cloned, Enumerate, Filter, FilterMap, FlatMap, Fuse};
|
||||
use super::{Inspect, Map, Peekable, Scan, Skip, SkipWhile, Take, TakeWhile, Rev};
|
||||
use super::{Zip, Sum, Product};
|
||||
use super::ChainState;
|
||||
use super::{DoubleEndedIterator, ExactSizeIterator, Extend, FromIterator};
|
||||
use super::{IntoIterator, ZipImpl};
|
||||
use super::{ChainState, FromIterator, ZipImpl};
|
||||
|
||||
fn _assert_is_object_safe(_: &Iterator<Item=()>) {}
|
||||
|
||||
|
|
|
@ -299,13 +299,9 @@
|
|||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
use clone::Clone;
|
||||
use cmp;
|
||||
use default::Default;
|
||||
use fmt;
|
||||
use iter_private::TrustedRandomAccess;
|
||||
use ops::FnMut;
|
||||
use option::Option::{self, Some, None};
|
||||
use usize;
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
|
|
|
@ -8,15 +8,11 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use clone::Clone;
|
||||
use cmp::PartialOrd;
|
||||
use mem;
|
||||
use ops::{self, Add, Sub};
|
||||
use option::Option::{self, Some, None};
|
||||
use marker::Sized;
|
||||
use usize;
|
||||
|
||||
use super::{DoubleEndedIterator, ExactSizeIterator, Iterator, FusedIterator};
|
||||
use super::FusedIterator;
|
||||
|
||||
/// Objects that can be stepped over in both directions.
|
||||
///
|
||||
|
|
|
@ -8,14 +8,11 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use clone::Clone;
|
||||
use default::Default;
|
||||
use fmt;
|
||||
use marker;
|
||||
use option::Option::{self, Some, None};
|
||||
use usize;
|
||||
|
||||
use super::{DoubleEndedIterator, IntoIterator, Iterator, ExactSizeIterator, FusedIterator};
|
||||
use super::FusedIterator;
|
||||
|
||||
/// An iterator that repeats an element endlessly.
|
||||
///
|
||||
|
|
|
@ -8,11 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use option::Option::{self, Some};
|
||||
use marker::Sized;
|
||||
|
||||
use super::Iterator;
|
||||
|
||||
/// Conversion from an `Iterator`.
|
||||
///
|
||||
/// By implementing `FromIterator` for a type, you define how it will be
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
// except according to those terms.
|
||||
|
||||
|
||||
use iter::ExactSizeIterator;
|
||||
|
||||
/// An iterator whose items are random accessible efficiently
|
||||
///
|
||||
/// # Safety
|
||||
|
|
|
@ -91,6 +91,11 @@
|
|||
#![feature(unboxed_closures)]
|
||||
#![feature(question_mark)]
|
||||
#![feature(never_type)]
|
||||
#![feature(prelude_import)]
|
||||
|
||||
#[prelude_import]
|
||||
#[allow(unused)]
|
||||
use prelude::v1::*;
|
||||
|
||||
#[macro_use]
|
||||
mod macros;
|
||||
|
|
|
@ -16,10 +16,7 @@
|
|||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
use clone::Clone;
|
||||
use cmp;
|
||||
use default::Default;
|
||||
use option::Option;
|
||||
use hash::Hash;
|
||||
use hash::Hasher;
|
||||
|
||||
|
@ -414,8 +411,6 @@ pub struct PhantomData<T:?Sized>;
|
|||
impls! { PhantomData }
|
||||
|
||||
mod impls {
|
||||
use super::{Send, Sync, Sized};
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
unsafe impl<'a, T: Sync + ?Sized> Send for &'a T {}
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
use marker::Sized;
|
||||
use intrinsics;
|
||||
use ptr;
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
reason = "needs an RFC to flesh out the design",
|
||||
issue = "27730")]
|
||||
|
||||
use marker::Sized;
|
||||
use ops::{CoerceUnsized, Deref};
|
||||
|
||||
/// Unsafe trait to indicate what types are usable with the NonZero struct
|
||||
|
|
|
@ -27,8 +27,6 @@
|
|||
issue = "0")]
|
||||
#![macro_use]
|
||||
|
||||
use prelude::v1::*;
|
||||
|
||||
use mem;
|
||||
use intrinsics;
|
||||
|
||||
|
@ -494,6 +492,5 @@ define_bignum!(Big32x40: type=Digit32, n=40);
|
|||
// this one is used for testing only.
|
||||
#[doc(hidden)]
|
||||
pub mod tests {
|
||||
use prelude::v1::*;
|
||||
define_bignum!(Big8x3: type=u8, n=3);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
//! The various algorithms from the paper.
|
||||
|
||||
use prelude::v1::*;
|
||||
use cmp::min;
|
||||
use cmp::Ordering::{Less, Equal, Greater};
|
||||
use num::diy_float::Fp;
|
||||
|
@ -47,7 +46,6 @@ mod fpu_precision {
|
|||
#[cfg(all(target_arch="x86", not(target_feature="sse2")))]
|
||||
mod fpu_precision {
|
||||
use mem::size_of;
|
||||
use ops::Drop;
|
||||
|
||||
/// A structure used to preserve the original value of the FPU control word, so that it can be
|
||||
/// restored when the structure is dropped.
|
||||
|
|
|
@ -92,7 +92,6 @@
|
|||
reason = "internal routines only exposed for testing",
|
||||
issue = "0")]
|
||||
|
||||
use prelude::v1::*;
|
||||
use fmt;
|
||||
use str::FromStr;
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
// FIXME This module's name is a bit unfortunate, since other modules also import `core::num`.
|
||||
|
||||
use prelude::v1::*;
|
||||
use cmp::Ordering::{self, Less, Equal, Greater};
|
||||
|
||||
pub use num::bignum::Big32x40 as Big;
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
//! modules rely on to not panic (or overflow) in turn.
|
||||
//! To make matters worse, all that happens in a single pass over the input.
|
||||
//! So, be careful when modifying anything, and double-check with the other modules.
|
||||
use prelude::v1::*;
|
||||
use super::num;
|
||||
use self::ParseResult::{Valid, ShortcutToInf, ShortcutToZero, Invalid};
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
//! Many functions in this module only handle normal numbers. The dec2flt routines conservatively
|
||||
//! take the universally-correct slow path (Algorithm M) for very small and very large numbers.
|
||||
//! That algorithm needs only next_float() which does handle subnormals and zeros.
|
||||
use prelude::v1::*;
|
||||
use u32;
|
||||
use cmp::Ordering::{Less, Equal, Greater};
|
||||
use ops::{Mul, Div, Neg};
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
//! Decodes a floating-point value into individual parts and error ranges.
|
||||
|
||||
use prelude::v1::*;
|
||||
|
||||
use {f32, f64};
|
||||
use num::FpCategory;
|
||||
use num::dec2flt::rawfp::RawFloat;
|
||||
|
|
|
@ -130,7 +130,6 @@ functions.
|
|||
reason = "internal routines only exposed for testing",
|
||||
issue = "0")]
|
||||
|
||||
use prelude::v1::*;
|
||||
use i16;
|
||||
pub use self::decoder::{decode, DecodableFloat, FullDecoded, Decoded};
|
||||
|
||||
|
|
|
@ -15,8 +15,6 @@ Almost direct (but slightly optimized) Rust translation of Figure 3 of [1].
|
|||
quickly and accurately. SIGPLAN Not. 31, 5 (May. 1996), 108-116.
|
||||
*/
|
||||
|
||||
use prelude::v1::*;
|
||||
|
||||
use cmp::Ordering;
|
||||
|
||||
use num::flt2dec::{Decoded, MAX_SIG_DIGITS, round_up};
|
||||
|
|
|
@ -16,8 +16,6 @@ Rust adaptation of Grisu3 algorithm described in [1]. It uses about
|
|||
accurately with integers. SIGPLAN Not. 45, 6 (June 2010), 233-243.
|
||||
*/
|
||||
|
||||
use prelude::v1::*;
|
||||
|
||||
use num::diy_float::Fp;
|
||||
use num::flt2dec::{Decoded, MAX_SIG_DIGITS, round_up};
|
||||
|
||||
|
|
|
@ -12,17 +12,11 @@
|
|||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
use char::CharExt;
|
||||
use cmp::PartialOrd;
|
||||
use convert::{From, TryFrom};
|
||||
use convert::TryFrom;
|
||||
use fmt;
|
||||
use intrinsics;
|
||||
use marker::{Copy, Sized};
|
||||
use mem::size_of;
|
||||
use option::Option::{self, Some, None};
|
||||
use result::Result::{self, Ok, Err};
|
||||
use str::{FromStr, StrExt};
|
||||
use slice::SliceExt;
|
||||
use str::FromStr;
|
||||
|
||||
/// Provides intentionally-wrapped arithmetic on `T`.
|
||||
///
|
||||
|
|
|
@ -71,10 +71,8 @@
|
|||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
use cmp::PartialOrd;
|
||||
use fmt;
|
||||
use marker::{Sized, Unsize};
|
||||
use result::Result::{self, Ok, Err};
|
||||
use marker::Unsize;
|
||||
|
||||
/// The `Drop` trait is used to run some code when a value goes out of scope.
|
||||
/// This is sometimes called a 'destructor'.
|
||||
|
@ -2184,9 +2182,6 @@ pub trait FnOnce<Args> {
|
|||
}
|
||||
|
||||
mod impls {
|
||||
use marker::Sized;
|
||||
use super::{Fn, FnMut, FnOnce};
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<'a,A,F:?Sized> Fn<A> for &'a F
|
||||
where F : Fn<A>
|
||||
|
|
|
@ -139,17 +139,8 @@
|
|||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
use self::Option::*;
|
||||
|
||||
use clone::Clone;
|
||||
use convert::From;
|
||||
use default::Default;
|
||||
use iter::{Iterator, FromIterator, IntoIterator, ExactSizeIterator, DoubleEndedIterator};
|
||||
use iter::FusedIterator;
|
||||
use iter::{FromIterator, FusedIterator};
|
||||
use mem;
|
||||
use ops::FnOnce;
|
||||
use result::Result::{Ok, Err};
|
||||
use result::Result;
|
||||
|
||||
// Note that this is not a lang item per se, but it has a hidden dependency on
|
||||
// `Iterator`, which is one. The compiler assumes that the `next` method of
|
||||
|
|
|
@ -16,17 +16,14 @@
|
|||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
use clone::Clone;
|
||||
use intrinsics;
|
||||
use ops::{CoerceUnsized, Deref};
|
||||
use fmt;
|
||||
use hash;
|
||||
use option::Option::{self, Some, None};
|
||||
use marker::{Copy, PhantomData, Send, Sized, Sync, Unsize};
|
||||
use marker::{PhantomData, Unsize};
|
||||
use mem;
|
||||
use nonzero::NonZero;
|
||||
|
||||
use cmp::{PartialEq, Eq, Ord, PartialOrd};
|
||||
use cmp::Ordering::{self, Less, Equal, Greater};
|
||||
|
||||
// FIXME #19649: intrinsic docs don't render, so these have no docs :(
|
||||
|
|
|
@ -236,14 +236,8 @@
|
|||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
use self::Result::{Ok, Err};
|
||||
|
||||
use clone::Clone;
|
||||
use fmt;
|
||||
use iter::{Iterator, DoubleEndedIterator, FromIterator, ExactSizeIterator, IntoIterator};
|
||||
use iter::FusedIterator;
|
||||
use ops::FnOnce;
|
||||
use option::Option::{self, None, Some};
|
||||
use iter::{FromIterator, FusedIterator};
|
||||
|
||||
/// `Result` is a type that represents either success (`Ok`) or failure (`Err`).
|
||||
///
|
||||
|
|
|
@ -33,24 +33,15 @@
|
|||
// * The `raw` and `bytes` submodules.
|
||||
// * Boilerplate trait implementations.
|
||||
|
||||
use clone::Clone;
|
||||
use cmp::{Ordering, PartialEq, PartialOrd, Eq, Ord};
|
||||
use cmp::Ordering::{Less, Equal, Greater};
|
||||
use cmp::Ordering::{self, Less, Equal, Greater};
|
||||
use cmp;
|
||||
use convert::AsRef;
|
||||
use default::Default;
|
||||
use fmt;
|
||||
use intrinsics::assume;
|
||||
use iter::*;
|
||||
use ops::{FnMut, self};
|
||||
use ops::RangeFull;
|
||||
use option::Option;
|
||||
use option::Option::{None, Some};
|
||||
use result::Result;
|
||||
use result::Result::{Ok, Err};
|
||||
use ops::{self, RangeFull};
|
||||
use ptr;
|
||||
use mem;
|
||||
use marker::{Copy, Send, Sync, self};
|
||||
use marker;
|
||||
use iter_private::TrustedRandomAccess;
|
||||
|
||||
#[repr(C)]
|
||||
|
|
|
@ -18,18 +18,10 @@ use self::pattern::Pattern;
|
|||
use self::pattern::{Searcher, ReverseSearcher, DoubleEndedSearcher};
|
||||
|
||||
use char;
|
||||
use clone::Clone;
|
||||
use convert::AsRef;
|
||||
use default::Default;
|
||||
use fmt;
|
||||
use iter::ExactSizeIterator;
|
||||
use iter::{Map, Cloned, Iterator, DoubleEndedIterator, FusedIterator};
|
||||
use marker::Sized;
|
||||
use iter::{Map, Cloned, FusedIterator};
|
||||
use mem;
|
||||
use ops::{Fn, FnMut, FnOnce};
|
||||
use option::Option::{self, None, Some};
|
||||
use result::Result::{self, Ok, Err};
|
||||
use slice::{self, SliceExt};
|
||||
use slice;
|
||||
|
||||
pub mod pattern;
|
||||
|
||||
|
@ -1338,11 +1330,9 @@ Section: Trait implementations
|
|||
*/
|
||||
|
||||
mod traits {
|
||||
use cmp::{Ord, Ordering, PartialEq, PartialOrd, Eq};
|
||||
use option::Option;
|
||||
use option::Option::Some;
|
||||
use cmp::Ordering;
|
||||
use ops;
|
||||
use str::{StrExt, eq_slice};
|
||||
use str::eq_slice;
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl Ord for str {
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
reason = "API not fully fleshed out and ready to be stabilized",
|
||||
issue = "27721")]
|
||||
|
||||
use prelude::v1::*;
|
||||
|
||||
use cmp;
|
||||
use fmt;
|
||||
use usize;
|
||||
|
|
|
@ -79,14 +79,8 @@
|
|||
|
||||
use self::Ordering::*;
|
||||
|
||||
use marker::{Send, Sync};
|
||||
|
||||
use intrinsics;
|
||||
use cell::UnsafeCell;
|
||||
|
||||
use result::Result::{self, Ok, Err};
|
||||
|
||||
use default::Default;
|
||||
use fmt;
|
||||
|
||||
/// A boolean type which can be safely shared between threads.
|
||||
|
|
|
@ -10,12 +10,8 @@
|
|||
|
||||
// See src/libstd/primitive_docs.rs for documentation.
|
||||
|
||||
use clone::Clone;
|
||||
use cmp::*;
|
||||
use cmp::Ordering::*;
|
||||
use default::Default;
|
||||
use option::Option;
|
||||
use option::Option::Some;
|
||||
|
||||
// FIXME(#19630) Remove this work-around
|
||||
macro_rules! e {
|
||||
|
|
Loading…
Reference in New Issue