about summary refs log tree commit diff
path: root/src/compiletest
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2012-08-30 13:10:36 -0700
committerGraydon Hoare <graydon@mozilla.com>2012-08-30 13:10:36 -0700
commit2d31c2afc4d029a50c50960bdafc8f56e3bc34c7 (patch)
tree12a8308e4a3ecbc0f7aa2d11549482caf3229c6c /src/compiletest
parenta9619306a512ded537a84a45c7717f32f468d31b (diff)
downloadrust-2d31c2afc4d029a50c50960bdafc8f56e3bc34c7.tar.gz
rust-2d31c2afc4d029a50c50960bdafc8f56e3bc34c7.zip
Fix another Eq missing case.
Diffstat (limited to 'src/compiletest')
-rw-r--r--src/compiletest/common.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiletest/common.rs b/src/compiletest/common.rs
index b5a20f49de4..14859ebef6e 100644
--- a/src/compiletest/common.rs
+++ b/src/compiletest/common.rs
@@ -2,6 +2,12 @@ import option;
 
 enum mode { mode_compile_fail, mode_run_fail, mode_run_pass, mode_pretty, }
 
+impl mode : cmp::Eq {
+    pure fn eq(&&other: mode) -> bool {
+        other as int == self as int
+    }
+}
+
 type config = {
     // The library paths required for running the compiler
     compile_lib_path: ~str,