Rémy Rakic
c97d135452
Refer to synthetically named lifetimes as "some specific lifetime" rather than "the specific lifetime"
2019-01-28 23:12:13 +01:00
Rémy Rakic
489bc4a2c6
When mentioning lifetimes, put either the trait ref or the self type closer to the lifetimes
...
When mentioning lifetimes, only invert wording between the expected trait and the self type when the self type has the vid.
This way, the lifetimes always stay close to the self type or trait ref that actually contains them.
2019-01-27 10:52:45 +01:00
Remy Rakic
a79f135be6
Update test expectations for new placeholder error messages
2019-01-27 10:52:43 +01:00
lqd
ce61b1b9fa
Update two E308 tests to the new placeholder error
2019-01-27 10:52:42 +01:00
Niko Matsakis
1db7193162
address tmandry nits
2019-01-02 17:35:06 -05:00
Niko Matsakis
bc4404c0b5
improve handling for subtype
...
Still not great, but good enough to land this PR.
2019-01-02 17:35:06 -05:00
Niko Matsakis
a24e04dff6
say "the lifetime" instead of "some lifetime" when it feels right
...
In particular, when we want to indicate that there is a connection
between the self type and the other types.
2019-01-02 17:35:06 -05:00
Niko Matsakis
7bc3f5585a
apply the same logic to ConcreteFailure errors
2019-01-02 17:35:06 -05:00
Niko Matsakis
6cbbee1dc7
apply the new placeholder errors even with just one placeholder
2019-01-02 17:35:06 -05:00
Niko Matsakis
0a61d682a1
introduce placeholder-placeholder errors for trait matching
2019-01-02 17:35:06 -05:00
Niko Matsakis
d3c96ff152
tests: worse diagnostics, but basically same errors
2019-01-02 17:35:05 -05:00
Niko Matsakis
652fd2efdf
add tests exercising exists<'a> { forall<'b> { .. } } pattern
...
Amazingly, this scenario was not tested for trait matching.
2019-01-02 17:35:05 -05:00
Niko Matsakis
4b5f274f90
make evaluation track whether outlives relationships mattered
...
Previously, evaluation ignored outlives relationships. Since we using
evaluation to skip the "normal" trait selection (which enforces
outlives relationships) this led to incorrect results in some cases.
2019-01-02 17:35:05 -05:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
Matthew Jasper
bc4f9b848d
Clearer later use messages for calls
...
Give a special message when the later use is from a call. Use the span
of the callee instead of the whole expression. For conflicting borrow
messages say that the later use is of the first borrow.
2018-10-03 20:32:38 +01:00
David Wood
3fc7ab2373
Merged migrated compile-fail tests and ui tests. Fixes #46841 .
2018-08-14 11:12:09 +02:00