Aaron Hill
fa6a61c689
Explain move errors that occur due to method calls involving self
...
This is a re-attempt of #72389 (which was reverted in #73594 )
Instead of using `ExpnKind::Desugaring` to represent operators, this PR
checks the lang item directly.
2020-06-26 16:28:09 -04:00
Aaron Hill
ad9972a20d
Revert "Rollup merge of #72389 - Aaron1011:feature/move-fn-self-msg, r=nikomatsakis"
...
This reverts commit 372cb9b69c , reversing
changes made to 5c61a8dc34 .
2020-06-22 12:46:29 -04:00
Aaron Hill
2c11c35f89
Explain move errors that occur due to method calls involving self
2020-06-11 17:40:40 -04:00
Yuki Okushi
9a164ff4c5
Skip tests on emscripten
2020-05-08 00:39:02 +09:00
Yuki Okushi
e69748ba4f
Move tests from test/run-fail to UI
2020-05-06 14:02:55 +09:00
Esteban Küber
2c71894657
Tweak suggest_constraining_type_param
...
Some of the bound restriction structured suggestions were incorrect
while others had subpar output.
2020-03-29 13:13:17 -07:00
LeSeulArtichaut
2e07892c7d
Do not emit note suggesting to implement trait to foreign type
...
Update tests
Extend to other operations
Refractor check in a separate function
Fix more tests
2020-02-17 15:21:36 +01:00
Patryk Wychowaniec
a8d34c1062
Improve reporting errors and suggestions for trait bounds
2020-02-09 10:33:47 +01:00
LeSeulArtichaut
eac6fac10b
Update tests
2019-12-12 20:56:14 +01:00
LeSeulArtichaut
3bd46f1aec
Update UI test expectations
2019-12-12 20:56:14 +01:00
Esteban Küber
9fb446d472
Deduplicate type param constraint suggestion code
2019-11-28 12:20:28 -08:00
Esteban Küber
02bc412d19
Use structured suggestion when requiring Copy constraint in type param
2019-11-28 12:20:28 -08:00
Esteban Küber
6f8f70624b
Surround types with backticks in type errors
2019-11-18 11:03:04 -08:00
Esteban Küber
94c6425464
Remove E0308 note when primary label has all info
2019-11-18 11:03:03 -08:00
Matthew Jasper
8ffa408059
Update tests for changes to cannot move errors
2019-06-03 14:55:29 +01:00
varkor
7f0f0e31ec
Remove double trailing newlines
2019-04-22 16:57:01 +01:00
Matthew Jasper
8eef102270
update tests for migrate mode by default
2019-04-22 08:40:08 +01:00
Andy Russell
b6f148c8bd
hide --explain hint if error has no extended info
2019-04-18 13:29:28 -04:00
hgallagher1993
4d648ce1b9
Better diagnostic for binary operation on BoxedValues
2019-03-27 13:13:09 -04:00
Vadim Petrochenkov
c1cfacfb13
Update NLL tests
2019-03-11 23:18:35 +03:00
Vadim Petrochenkov
fa72a81bea
Update tests
2019-03-11 23:10:26 +03:00
Esteban Küber
baa0828ee3
Fix --compare-mode=nll tests
2019-01-24 10:53:43 -08:00
Yuning Zhang
710dcbd381
Improve type mismatch error messages
...
Replace "integral variable" with "integer" and replace
"floating-point variable" with "floating-point number" to make the
message less confusing.
2018-12-31 20:43:08 -05:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
Felix S. Klock II
e940801592
Make ui/binop-move-semantics.rs robust w.r.t. NLL.
2018-11-05 15:26:02 +01:00
Matthew Jasper
42a541e0f1
Don't emit cannot move errors twice in migrate mode
2018-10-29 20:22:01 +00:00
David Wood
539404b77d
Update output for borrowck=migrate compare mode.
...
This commit updates the test output for the updated NLL compare mode
that uses `-Z borrowck=migrate` rather than `-Z borrowck=mir`. The
previous commit changes `compiletest` and this commit only updates
`.nll.stderr` files.
2018-10-17 00:57:32 +02: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