summary refs log tree commit diff
path: root/src/test/run-pass/deriving-cmp-generic-tuple-struct.rs
AgeCommit message (Collapse)AuthorLines
2014-03-23std: remove the `equals` method from `TotalEq`.Huon Wilson-3/+0
`TotalEq` is now just an assertion about the `Eq` impl of a type (i.e. `==` is a total equality if a type implements `TotalEq`) so the extra method is just confusing. Also, a new method magically appeared as a hack to allow deriving to assert that the contents of a struct/enum are also TotalEq, because the deriving infrastructure makes it very hard to do anything but create a trait method. (You didn't hear about this horrible work-around from me :(.)
2013-08-03remove obsolete `foreach` keywordDaniel Micay-2/+2
this has been replaced by `for`
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-2/+2
2013-06-21vec: rm old_iter implementations, except BaseIterDaniel Micay-2/+2
The removed test for issue #2611 is well covered by the `std::iterator` module itself. This adds the `count` method to `IteratorUtil` to replace `EqIter`.
2013-06-04librustc: Disallow multiple patterns from appearing in a "let" declaration.Patrick Walton-4/+7
You can still initialize multiple variables at once with "let (x, y) = (1, 2)".
2013-04-12libsyntax: short-circuit on non-matching variants in deriving code.Huon Wilson-0/+47
Allow a deriving instance using the generic code to short-circuit for any non-matching enum variants (grouping them all into a _ match), reducing the number of arms required. Use this to speed up the Eq & TotalEq implementations.