about summary refs log tree commit diff
path: root/src/libsyntax/parse/comments.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax/parse/comments.rs')
-rw-r--r--src/libsyntax/parse/comments.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs
index 2a8bbe3b6d8..3cb6b08d976 100644
--- a/src/libsyntax/parse/comments.rs
+++ b/src/libsyntax/parse/comments.rs
@@ -20,12 +20,24 @@ enum cmnt_style {
 }
 
 impl cmnt_style : cmp::Eq {
+    #[cfg(stage0)]
     pure fn eq(other: &cmnt_style) -> bool {
         (self as uint) == ((*other) as uint)
     }
+    #[cfg(stage1)]
+    #[cfg(stage2)]
+    pure fn eq(&self, other: &cmnt_style) -> bool {
+        ((*self) as uint) == ((*other) as uint)
+    }
+    #[cfg(stage0)]
     pure fn ne(other: &cmnt_style) -> bool {
         (self as uint) != ((*other) as uint)
     }
+    #[cfg(stage1)]
+    #[cfg(stage2)]
+    pure fn ne(&self, other: &cmnt_style) -> bool {
+        ((*self) as uint) != ((*other) as uint)
+    }
 }
 
 type cmnt = {style: cmnt_style, lines: ~[~str], pos: BytePos};