Skip to content

Commit 6e8e4f8

Browse files
committed
Remove #[cfg(stage0)] items.
1 parent 07503df commit 6e8e4f8

File tree

17 files changed

+14
-1353
lines changed

17 files changed

+14
-1353
lines changed

src/liballoc/arc_stage0.rs

-686
This file was deleted.

src/liballoc/boxed.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,12 @@ use core::any::Any;
5757
use core::cmp::Ordering;
5858
use core::fmt;
5959
use core::hash::{self, Hash};
60+
use core::marker::Unsize;
6061
use core::mem;
61-
use core::ops::{Deref, DerefMut};
62+
use core::ops::{CoerceUnsized, Deref, DerefMut};
6263
use core::ptr::{Unique};
6364
use core::raw::{TraitObject};
6465

65-
#[cfg(not(stage0))]
66-
use core::marker::Unsize;
67-
#[cfg(not(stage0))]
68-
use core::ops::CoerceUnsized;
69-
7066
/// A value that represents the heap. This is the default place that the `box`
7167
/// keyword allocates into when no place is supplied.
7268
///
@@ -392,5 +388,4 @@ impl<'a,A,R> FnOnce<A> for Box<FnBox<A,Output=R>+Send+'a> {
392388
}
393389
}
394390

395-
#[cfg(not(stage0))]
396391
impl<T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<Box<U>> for Box<T> {}

src/liballoc/lib.rs

-7
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,7 @@ pub mod boxed;
112112
mod boxed { pub use std::boxed::{Box, HEAP}; }
113113
#[cfg(test)]
114114
mod boxed_test;
115-
#[cfg(not(stage0))]
116115
pub mod arc;
117-
#[cfg(stage0)]
118-
mod arc_stage0;
119-
#[cfg(stage0)]
120-
pub mod arc {
121-
pub use arc_stage0::*;
122-
}
123116
pub mod rc;
124117

125118
/// Common out-of-memory routine

0 commit comments

Comments
 (0)