summary refs log tree commit diff
path: root/src/test/compile-fail/coherence-default-trait-impl.rs
AgeCommit message (Collapse)AuthorLines
2018-01-13Remove wfcheck for auto traits, remove dead error codesleonardo.yvens-2/+0
The WF checks are now done as an AST validation.
2018-01-13Adjust tests for removal of `impl Foo for .. {}`leonardo.yvens-12/+5
2017-11-03auto trait future compatibility lintleonardo.yvens-0/+4
2017-11-03[Syntax Breaking] Rename DefaultImpl to AutoImplleonardo.yvens-1/+1
DefaultImpl is a highly confusing name for what we now call auto impls, as in `impl Send for ..`. The name auto impl is not formally decided but for sanity anything is better than `DefaultImpl` which refers neither to `default impl` nor to `impl Default`.
2017-04-14Implement RFC 1268Sean Griffin-1/+1
This patch allows overlap to occur between any two impls of a trait for traits which have no associated items. Several compile-fail tests around coherence had to be changed to add at least one item to the trait they test against. Ref #29864
2017-02-25rustc_typeck: rework coherence to be almost completely on-demand.Eduard-Mihai Burtescu-1/+1
2016-03-14Adjust test for new overlap message on default trait implsAaron Turon-1/+1
2015-12-16Provide overlapping types for coherence errorsAaron Turon-1/+1
Currently, a coherence error based on overlapping impls simply mentions the trait, and points to the two conflicting impls: ``` error: conflicting implementations for trait `Foo` ``` With this commit, the error will include all input types to the trait (including the `Self` type) after unification between the overlapping impls. In other words, the error message will provide feedback with full type details, like: ``` error: conflicting implementations of trait `Foo<u32>` for type `u8`: ``` When the `Self` type for the two impls unify to an inference variable, it is elided in the output, since "for type `_`" is just noise in that case. Closes #23980
2015-04-21test: Fix fallout in testsAlex Crichton-5/+3
2015-04-09Remove `ignore-tidy-linelength` from tests that no longer need itLuke Gallagher-2/+0
2015-03-20Check trait unsafety for defaulted traitsFlavio Percoco-0/+10
2015-02-22Restore the coherence visitor and fix falloutsFlavio Percoco-3/+0
2015-02-22Record default implementations in a separate stepFlavio Percoco-1/+3
2015-02-22Test all the thingsFlavio Percoco-0/+25