Skip to content

Commit 2d31c2a

Browse files
committed
Fix another Eq missing case.
1 parent a961930 commit 2d31c2a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/compiletest/common.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ import option;
22

33
enum mode { mode_compile_fail, mode_run_fail, mode_run_pass, mode_pretty, }
44

5+
impl mode : cmp::Eq {
6+
pure fn eq(&&other: mode) -> bool {
7+
other as int == self as int
8+
}
9+
}
10+
511
type config = {
612
// The library paths required for running the compiler
713
compile_lib_path: ~str,

0 commit comments

Comments
 (0)