about summary refs log tree commit diff
path: root/src/test/compile-fail/issue-3344.rs
AgeCommit message (Collapse)AuthorLines
2018-07-15Move some `compile-fail` tests to `ui`Esteban Küber-17/+0
2015-01-08Update compile fail tests to use usize.Huon Wilson-1/+1
2015-01-02Use `derive` rather than `deriving` in testsNick Cameron-1/+1
2014-09-17librustc: Implement associated types behind a feature gate.Patrick Walton-1/+1
The implementation essentially desugars during type collection and AST type conversion time into the parameter scheme we have now. Only fully qualified names--e.g. `<T as Foo>::Bar`--are supported.
2014-06-29Implement RFC#28: Add PartialOrd::partial_cmpSteven Fackler-1/+1
I ended up altering the semantics of Json's PartialOrd implementation. It used to be the case that Null < Null, but I can't think of any reason for an ordering other than the default one so I just switched it over to using the derived implementation. This also fixes broken `PartialOrd` implementations for `Vec` and `TreeMap`. RFC: 0028-partial-cmp
2014-05-30std: Rename {Eq,Ord} to Partial{Eq,Ord}Alex Crichton-2/+2
This is part of the ongoing renaming of the equality traits. See #12517 for more details. All code using Eq/Ord will temporarily need to move to Partial{Eq,Ord} or the Total{Eq,Ord} traits. The Total traits will soon be renamed to {Eq,Ord}. cc #12517 [breaking-change]
2014-03-07create a sensible comparison trait hierarchyDaniel Micay-0/+1
* `Ord` inherits from `Eq` * `TotalOrd` inherits from `TotalEq` * `TotalOrd` inherits from `Ord` * `TotalEq` inherits from `Eq` This is a partial implementation of #12517.
2014-01-04Don't allow newtype structs to be dereferenced. #6246Brian Anderson-2/+2
2013-11-08Move comparing of impl methods against trait from collect to check.Niko Matsakis-1/+1
This code fits better in check because it is checking that the impl matches the interface. This allows us to avoid the awkward constructions that lazilly collect traits and so forth. It also permits us to make use of the results of variance inference.
2013-07-13cmp: Use default methods in trait Ord, only require Ord::ltblake2-ppc-2/+1
It will be simpler to implement only one method for Ord, while we also allow implementing all four Ord methods for semantics or performance reasons. We only supply three default methods (and not four), because don't have any nice error reporting for the case where at least one method must be implemented, but it's arbitrary which.
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-1/+1
2013-03-22test: Remove `pure` from the test suitePatrick Walton-3/+3
2013-03-11test: Remove newtype enums from the test suite. rs=deenumPatrick Walton-1/+1
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-1/+1
rs=implflipping
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+10
2012-11-19rustc: Implement explicit self for Eq and Ord. r=graydonPatrick Walton-3/+3
2012-09-20Fix ord test breakage.Graydon Hoare-3/+3
2012-09-20rustc: De-mode all overloaded operatorsPatrick Walton-3/+3
2012-09-07In typeck, don't assume traits with default methods are in the same crateTim Chevalier-0/+7
But note that default methods still don't work cross-crate (see #2794) -- this just makes it so that when a method is missing in a cross-crate impl, the right error message gets printed. Closes #3344