Revert "Register snapshots"

This reverts commit d6d12d90ff.
This commit is contained in:
Brian Anderson 2012-12-17 16:26:44 -08:00
parent d6d12d90ff
commit 68998724c6
9 changed files with 55 additions and 8 deletions

View File

@ -12,6 +12,10 @@
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];
#[cfg(stage0)]
use T = inst::T;
#[cfg(stage1)]
#[cfg(stage2)]
use T = self::inst::T;
use cmp::{Eq, Ord};

View File

@ -10,6 +10,10 @@
//! Operations and constants for `int`
#[cfg(stage0)]
pub use inst::pow;
#[cfg(stage1)]
#[cfg(stage2)]
pub use self::inst::pow;
mod inst {

View File

@ -17,6 +17,10 @@
use cmp::{Eq, Ord};
#[cfg(stage0)]
use inst::{IMPL_T, EACH, SIZE_HINT};
#[cfg(stage1)]
#[cfg(stage2)]
use self::inst::{IMPL_T, EACH, SIZE_HINT};
impl<A> IMPL_T<A>: iter::BaseIter<A> {

View File

@ -44,6 +44,15 @@ pub trait Copy {
// Empty.
}
#[cfg(stage0)]
#[lang="send"]
pub trait Owned {
// Empty.
}
#[cfg(stage1)]
#[cfg(stage2)]
#[cfg(stage3)]
#[lang="owned"]
pub trait Owned {
// Empty.
@ -54,6 +63,15 @@ pub trait Const {
// Empty.
}
#[cfg(stage0)]
#[lang="owned"]
pub trait Durable {
// Empty.
}
#[cfg(stage1)]
#[cfg(stage2)]
#[cfg(stage3)]
#[lang="durable"]
pub trait Durable {
// Empty.

View File

@ -12,6 +12,10 @@
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];
#[cfg(stage0)]
use T = inst::T;
#[cfg(stage1)]
#[cfg(stage2)]
use T = self::inst::T;
use cmp::{Eq, Ord};

View File

@ -10,6 +10,10 @@
//! Operations and constants for `u8`
#[cfg(stage0)]
pub use inst::is_ascii;
#[cfg(stage1)]
#[cfg(stage2)]
pub use self::inst::is_ascii;
mod inst {

View File

@ -10,6 +10,13 @@
//! Operations and constants for `uint`
#[cfg(stage0)]
pub use inst::{
div_ceil, div_round, div_floor, iterate,
next_power_of_two
};
#[cfg(stage1)]
#[cfg(stage2)]
pub use self::inst::{
div_ceil, div_round, div_floor, iterate,
next_power_of_two

View File

@ -80,10 +80,20 @@ impl <T: Ord> PriorityQueue<T> {
}
/// Consume the PriorityQueue and return the underlying vector
#[cfg(stage0)]
pure fn to_vec(self) -> ~[T] { fail }
#[cfg(stage1)]
#[cfg(stage2)]
#[cfg(stage3)]
pure fn to_vec(self) -> ~[T] { let PriorityQueue{data: v} = self; v }
/// Consume the PriorityQueue and return a vector in sorted
/// (ascending) order
#[cfg(stage0)]
pure fn to_sorted_vec(self) -> ~[T] { fail }
#[cfg(stage1)]
#[cfg(stage2)]
#[cfg(stage3)]
pure fn to_sorted_vec(self) -> ~[T] {
let mut q = self;
let mut end = q.len();

View File

@ -1,11 +1,3 @@
S 2012-12-14 dbc52ce
macos-i386 994697c57810b8f139d71df47024512970db860c
macos-x86_64 f8faa6a80b0b98b27ceee6fec71ded7ca058104d
linux-i386 238389613220fac131647a67efadc9e20f09c21a
linux-x86_64 8f27f367866d3d52300d7e5d75f602a220bef6fb
winnt-i386 92ac1ac09a262a59f40160c9dcf535e1c8ea8e75
freebsd-x86_64 d39ff0cbd7fdf04de55baea9d4003705f5ff6441
S 2012-12-08 6630d75
macos-i386 cdb0f0ebe99b8fea7688d9ae32860a63d1e05399
macos-x86_64 c509dc252be6e1c5cf862c659235dc94bde397aa