about summary refs log tree commit diff
path: root/src/fuzzer
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-09-07 12:06:02 -0700
committerPatrick Walton <pcwalton@mimiga.net>2012-09-07 12:24:48 -0700
commitfeb014eb3c3aa1ccaae1df407801dffa090499fd (patch)
tree8ffeec6945de4843f9e0d150720596327530e00f /src/fuzzer
parentac1f84c153a171e641233e5d2d11404a0b520986 (diff)
rustc: Add an "ne" method to the Eq trait, and implement it everywhere
Diffstat (limited to 'src/fuzzer')
-rw-r--r--src/fuzzer/fuzzer.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fuzzer/fuzzer.rs b/src/fuzzer/fuzzer.rs
index 134b0773f6b..ea88c5865d5 100644
--- a/src/fuzzer/fuzzer.rs
+++ b/src/fuzzer/fuzzer.rs
@@ -12,6 +12,7 @@ impl test_mode : cmp::Eq {
     pure fn eq(&&other: test_mode) -> bool {
         (self as uint) == (other as uint)
     }
+    pure fn ne(&&other: test_mode) -> bool { !self.eq(other) }
 }
 
 fn write_file(filename: &Path, content: ~str) {