rustc: For one-tuples, make parsing and printing the type work

and add a test to reflect-visit-data
This commit is contained in:
Tim Chevalier
2013-02-18 17:45:56 -08:00
parent 612553cb39
commit aa284de1fc
6 changed files with 26 additions and 5 deletions

View File

@@ -111,6 +111,8 @@ impl<A: Copy, B: Copy> ExtendedTupleOps<A,B> for (~[A], ~[B]) {
}
}
// FIXME #4898: impl for one-tuples
#[cfg(notest)]
impl<A: Eq, B: Eq> Eq for (A, B) {
#[inline(always)]