Skip to content

Commit a2493ad

Browse files
committed
change stage1,stage2,stage2 into not(stage0)
With luck, this will allow rust to compile itself without --cfg flags again...
1 parent cdd342b commit a2493ad

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/libsyntax/ext/base.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,7 @@ impl <K: Eq + Hash + IterBytes ,V: Copy> MapChain<K,V>{
461461

462462
// ugh: can't get this to compile with mut because of the
463463
// lack of flow sensitivity.
464-
#[cfg(stage1)]
465-
#[cfg(stage2)]
466-
#[cfg(stage3)]
464+
#[cfg(not(stage0))]
467465
fn get_map<'a>(&'a self) -> &'a HashMap<K,@V> {
468466
match *self {
469467
BaseMapChain (~ref map) => map,

src/libsyntax/opt_vec.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ impl<T> OptVec<T> {
6868
}
6969
}
7070

71-
#[cfg(stage1)]
72-
#[cfg(stage2)]
73-
#[cfg(stage3)]
71+
#[cfg(not(stage0))]
7472
fn get<'a>(&'a self, i: uint) -> &'a T {
7573
match *self {
7674
Empty => fail!(fmt!("Invalid index %u", i)),

0 commit comments

Comments
 (0)