summary refs log tree commit diff
path: root/src/test/run-pass/deriving-cmp-generic-struct-enum.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-10-06Add appropriate #[feature] directives to testsAlex Crichton-0/+2
2013-09-03Un-xfail/move/delete some tests.Huon Wilson-8/+6
2013-04-12libsyntax: short-circuit on non-matching variants in deriving code.Huon Wilson-0/+52
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.