diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-02-14 10:03:53 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-02-14 22:55:20 -0800 |
| commit | 359ac360a453b31494d18bf838f6620032a663e5 (patch) | |
| tree | d4103a6de21ec37365bc1327f5f52ab21559f909 /src/libstd/vec.rs | |
| parent | 3496e93d13590140242f862c905dc2d591d2e2ea (diff) | |
| download | rust-359ac360a453b31494d18bf838f6620032a663e5.tar.gz rust-359ac360a453b31494d18bf838f6620032a663e5.zip | |
Register new snapshots
This enables the parser error for `extern mod` => `extern crate` transitions.
Diffstat (limited to 'src/libstd/vec.rs')
| -rw-r--r-- | src/libstd/vec.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libstd/vec.rs b/src/libstd/vec.rs index cfe2ad5a08a..a1c5e83db44 100644 --- a/src/libstd/vec.rs +++ b/src/libstd/vec.rs @@ -108,7 +108,7 @@ use container::{Container, Mutable}; use cmp::{Eq, TotalOrd, Ordering, Less, Equal, Greater}; use cmp; use default::Default; -#[cfg(not(stage0))] use fmt; +use fmt; use iter::*; use num::{Integer, CheckedAdd, Saturating, checked_next_power_of_two}; use option::{None, Option, Some}; @@ -116,7 +116,7 @@ use ptr::to_unsafe_ptr; use ptr; use ptr::RawPtr; use rt::global_heap::{malloc_raw, realloc_raw, exchange_free}; -#[cfg(not(stage0))] use result::{Ok, Err}; +use result::{Ok, Err}; use mem; use mem::size_of; use kinds::marker; @@ -2643,7 +2643,6 @@ impl<A: DeepClone> DeepClone for ~[A] { } } -#[cfg(not(stage0))] impl<'a, T: fmt::Show> fmt::Show for &'a [T] { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { if_ok!(write!(f.buf, "[")); @@ -2660,7 +2659,6 @@ impl<'a, T: fmt::Show> fmt::Show for &'a [T] { } } -#[cfg(not(stage0))] impl<T: fmt::Show> fmt::Show for ~[T] { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { self.as_slice().fmt(f) |
