From 2d31c2afc4d029a50c50960bdafc8f56e3bc34c7 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 30 Aug 2012 13:10:36 -0700 Subject: [PATCH] Fix another Eq missing case. --- src/compiletest/common.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/compiletest/common.rs b/src/compiletest/common.rs index b5a20f49de43..14859ebef6e5 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,