change stage1,stage2,stage2 into not(stage0)

With luck, this will allow rust to compile itself without --cfg flags again...
This commit is contained in:
John Clements 2013-04-23 10:51:57 -07:00
parent cdd342bd34
commit a2493ad048
2 changed files with 2 additions and 6 deletions

View File

@ -461,9 +461,7 @@ impl <K: Eq + Hash + IterBytes ,V: Copy> MapChain<K,V>{
// ugh: can't get this to compile with mut because of the // ugh: can't get this to compile with mut because of the
// lack of flow sensitivity. // lack of flow sensitivity.
#[cfg(stage1)] #[cfg(not(stage0))]
#[cfg(stage2)]
#[cfg(stage3)]
fn get_map<'a>(&'a self) -> &'a HashMap<K,@V> { fn get_map<'a>(&'a self) -> &'a HashMap<K,@V> {
match *self { match *self {
BaseMapChain (~ref map) => map, BaseMapChain (~ref map) => map,

View File

@ -68,9 +68,7 @@ impl<T> OptVec<T> {
} }
} }
#[cfg(stage1)] #[cfg(not(stage0))]
#[cfg(stage2)]
#[cfg(stage3)]
fn get<'a>(&'a self, i: uint) -> &'a T { fn get<'a>(&'a self, i: uint) -> &'a T {
match *self { match *self {
Empty => fail!(fmt!("Invalid index %u", i)), Empty => fail!(fmt!("Invalid index %u", i)),