Guillaume Gomez
747287a2b3
Add better error message when == operator is badly used
2017-05-17 22:17:53 +02:00
Esteban Küber
be8787dfe5
Explicit help message for binop type missmatch
...
When trying to do a binary operation with missing implementation, for
example `1 + Some(2)`, provide an explicit help message:
```
note: no implementation for `{integer} + std::option::Option<{integer}>`
```
Use `rustc_on_unimplemented` for the suggestions. Move cfail test to ui.
2017-04-10 14:28:38 -07:00
Eduard-Mihai Burtescu
ba11640179
rustc_typeck: hook up collect and item/body check to on-demand.
2017-02-25 18:35:25 +02:00
Eduard-Mihai Burtescu
9783947c2a
rustc_typeck: move impl Trait checks out of RegionScope.
2017-01-28 02:56:46 +02:00
Vadim Petrochenkov
a8f5047430
Add tests
2017-01-24 22:56:02 +03:00
est31
6a29fab274
Mark even more tests as gate tests
...
Now, no feature outside of the whitelist is
without a test marked as its gate test.
2017-01-12 23:53:02 +01:00
Jonathan Turner
050499c407
Rollup merge of #37324 - GuillaumeGomez:trait_error_message, r=jonathandturner
...
Improve E0277 help message
Fixes #37319 .
r? @jonathandturner
2016-10-24 15:41:29 -07:00
Guillaume Gomez
1fadd868cd
Improve E0277 help message
2016-10-21 16:13:52 +02:00
Mikhail Modin
e85277596e
improve "Doesn't live long enough" error
2016-10-20 22:51:51 +03:00
Mohit Agarwal
874a20d01d
Update E0277 to new error format
...
Fixes #35311 .
Part of #35233 .
r? @jonathandturner
2016-08-25 18:26:04 +05:30
Jonathan Turner
70ce90c320
Move 'doesn't live long enough' errors to labels
2016-08-17 15:24:42 -07:00
Eduard Burtescu
23f0494114
test: add more extensive tests for impl Trait.
2016-08-12 06:46:31 +03:00
Eduard Burtescu
08bf9f69b9
typeck: leak auto trait obligations through impl Trait.
2016-08-12 06:46:31 +03:00