parent
d6d12d90ff
commit
68998724c6
9 changed files with 55 additions and 8 deletions
|
@ -12,6 +12,10 @@
|
||||||
#[forbid(deprecated_mode)];
|
#[forbid(deprecated_mode)];
|
||||||
#[forbid(deprecated_pattern)];
|
#[forbid(deprecated_pattern)];
|
||||||
|
|
||||||
|
#[cfg(stage0)]
|
||||||
|
use T = inst::T;
|
||||||
|
#[cfg(stage1)]
|
||||||
|
#[cfg(stage2)]
|
||||||
use T = self::inst::T;
|
use T = self::inst::T;
|
||||||
|
|
||||||
use cmp::{Eq, Ord};
|
use cmp::{Eq, Ord};
|
||||||
|
|
|
@ -10,6 +10,10 @@
|
||||||
|
|
||||||
//! Operations and constants for `int`
|
//! Operations and constants for `int`
|
||||||
|
|
||||||
|
#[cfg(stage0)]
|
||||||
|
pub use inst::pow;
|
||||||
|
#[cfg(stage1)]
|
||||||
|
#[cfg(stage2)]
|
||||||
pub use self::inst::pow;
|
pub use self::inst::pow;
|
||||||
|
|
||||||
mod inst {
|
mod inst {
|
||||||
|
|
|
@ -17,6 +17,10 @@
|
||||||
|
|
||||||
use cmp::{Eq, Ord};
|
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};
|
use self::inst::{IMPL_T, EACH, SIZE_HINT};
|
||||||
|
|
||||||
impl<A> IMPL_T<A>: iter::BaseIter<A> {
|
impl<A> IMPL_T<A>: iter::BaseIter<A> {
|
||||||
|
|
|
@ -44,6 +44,15 @@ pub trait Copy {
|
||||||
// Empty.
|
// Empty.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(stage0)]
|
||||||
|
#[lang="send"]
|
||||||
|
pub trait Owned {
|
||||||
|
// Empty.
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(stage1)]
|
||||||
|
#[cfg(stage2)]
|
||||||
|
#[cfg(stage3)]
|
||||||
#[lang="owned"]
|
#[lang="owned"]
|
||||||
pub trait Owned {
|
pub trait Owned {
|
||||||
// Empty.
|
// Empty.
|
||||||
|
@ -54,6 +63,15 @@ pub trait Const {
|
||||||
// Empty.
|
// Empty.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(stage0)]
|
||||||
|
#[lang="owned"]
|
||||||
|
pub trait Durable {
|
||||||
|
// Empty.
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(stage1)]
|
||||||
|
#[cfg(stage2)]
|
||||||
|
#[cfg(stage3)]
|
||||||
#[lang="durable"]
|
#[lang="durable"]
|
||||||
pub trait Durable {
|
pub trait Durable {
|
||||||
// Empty.
|
// Empty.
|
||||||
|
|
|
@ -12,6 +12,10 @@
|
||||||
#[forbid(deprecated_mode)];
|
#[forbid(deprecated_mode)];
|
||||||
#[forbid(deprecated_pattern)];
|
#[forbid(deprecated_pattern)];
|
||||||
|
|
||||||
|
#[cfg(stage0)]
|
||||||
|
use T = inst::T;
|
||||||
|
#[cfg(stage1)]
|
||||||
|
#[cfg(stage2)]
|
||||||
use T = self::inst::T;
|
use T = self::inst::T;
|
||||||
|
|
||||||
use cmp::{Eq, Ord};
|
use cmp::{Eq, Ord};
|
||||||
|
|
|
@ -10,6 +10,10 @@
|
||||||
|
|
||||||
//! Operations and constants for `u8`
|
//! Operations and constants for `u8`
|
||||||
|
|
||||||
|
#[cfg(stage0)]
|
||||||
|
pub use inst::is_ascii;
|
||||||
|
#[cfg(stage1)]
|
||||||
|
#[cfg(stage2)]
|
||||||
pub use self::inst::is_ascii;
|
pub use self::inst::is_ascii;
|
||||||
|
|
||||||
mod inst {
|
mod inst {
|
||||||
|
|
|
@ -10,6 +10,13 @@
|
||||||
|
|
||||||
//! Operations and constants for `uint`
|
//! 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::{
|
pub use self::inst::{
|
||||||
div_ceil, div_round, div_floor, iterate,
|
div_ceil, div_round, div_floor, iterate,
|
||||||
next_power_of_two
|
next_power_of_two
|
||||||
|
|
|
@ -80,10 +80,20 @@ impl <T: Ord> PriorityQueue<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Consume the PriorityQueue and return the underlying vector
|
/// 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 }
|
pure fn to_vec(self) -> ~[T] { let PriorityQueue{data: v} = self; v }
|
||||||
|
|
||||||
/// Consume the PriorityQueue and return a vector in sorted
|
/// Consume the PriorityQueue and return a vector in sorted
|
||||||
/// (ascending) order
|
/// (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] {
|
pure fn to_sorted_vec(self) -> ~[T] {
|
||||||
let mut q = self;
|
let mut q = self;
|
||||||
let mut end = q.len();
|
let mut end = q.len();
|
||||||
|
|
|
@ -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
|
S 2012-12-08 6630d75
|
||||||
macos-i386 cdb0f0ebe99b8fea7688d9ae32860a63d1e05399
|
macos-i386 cdb0f0ebe99b8fea7688d9ae32860a63d1e05399
|
||||||
macos-x86_64 c509dc252be6e1c5cf862c659235dc94bde397aa
|
macos-x86_64 c509dc252be6e1c5cf862c659235dc94bde397aa
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue