diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-09-07 12:06:02 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-09-07 12:24:48 -0700 |
| commit | feb014eb3c3aa1ccaae1df407801dffa090499fd (patch) | |
| tree | 8ffeec6945de4843f9e0d150720596327530e00f /src/compiletest | |
| parent | ac1f84c153a171e641233e5d2d11404a0b520986 (diff) | |
| download | rust-feb014eb3c3aa1ccaae1df407801dffa090499fd.tar.gz rust-feb014eb3c3aa1ccaae1df407801dffa090499fd.zip | |
rustc: Add an "ne" method to the Eq trait, and implement it everywhere
Diffstat (limited to 'src/compiletest')
| -rw-r--r-- | src/compiletest/common.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiletest/common.rs b/src/compiletest/common.rs index 714f04e4a9d..5a8b98cd857 100644 --- a/src/compiletest/common.rs +++ b/src/compiletest/common.rs @@ -6,6 +6,7 @@ impl mode : cmp::Eq { pure fn eq(&&other: mode) -> bool { other as int == self as int } + pure fn ne(&&other: mode) -> bool { !self.eq(other) } } type config = { |
