Fix another Eq missing case.

This commit is contained in:
Graydon Hoare 2012-08-30 13:10:36 -07:00
parent a9619306a5
commit 2d31c2afc4

View File

@ -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,