mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
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:
parent
cdd342bd34
commit
a2493ad048
@ -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,
|
||||||
|
@ -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)),
|
||||||
|
Loading…
Reference in New Issue
Block a user