Skip to content

Commit

Permalink
Remove #[cfg(stage0)] items.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb committed May 25, 2015
1 parent a1979ac commit 203e101
Show file tree
Hide file tree
Showing 17 changed files with 14 additions and 1,353 deletions.
686 changes: 0 additions & 686 deletions src/liballoc/arc_stage0.rs

This file was deleted.

9 changes: 2 additions & 7 deletions src/liballoc/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,12 @@ use core::any::Any;
use core::cmp::Ordering;
use core::fmt;
use core::hash::{self, Hash};
use core::marker::Unsize;
use core::mem;
use core::ops::{Deref, DerefMut};
use core::ops::{CoerceUnsized, Deref, DerefMut};
use core::ptr::{Unique};
use core::raw::{TraitObject};

#[cfg(not(stage0))]
use core::marker::Unsize;
#[cfg(not(stage0))]
use core::ops::CoerceUnsized;

/// A value that represents the heap. This is the default place that the `box`
/// keyword allocates into when no place is supplied.
///
Expand Down Expand Up @@ -396,5 +392,4 @@ impl<'a,A,R> FnOnce<A> for Box<FnBox<A,Output=R>+Send+'a> {
}
}

#[cfg(not(stage0))]
impl<T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<Box<U>> for Box<T> {}
7 changes: 0 additions & 7 deletions src/liballoc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,7 @@ pub mod boxed;
mod boxed { pub use std::boxed::{Box, HEAP}; }
#[cfg(test)]
mod boxed_test;
#[cfg(not(stage0))]
pub mod arc;
#[cfg(stage0)]
mod arc_stage0;
#[cfg(stage0)]
pub mod arc {
pub use arc_stage0::*;
}
pub mod rc;

/// Common out-of-memory routine
Expand Down
Loading

0 comments on commit 203e101

Please sign in to comment.