Uh oh!
There was an error while loading. Please reload this page.
Suggest correct syntax when writing type arg instead of assoc type - #55808
Conversation
rust-highfive
commented
Nov 9, 2018
(rust_highfive has picked a reviewer for you, use r? to override) |
estebank
commented
Nov 9, 2018
estebank
commented
Nov 9, 2018
The output can still be improved, IMO The span pointing at the associated type definition span seems superfluous (at least without the corresponding trait's def span) and the wording could do with some copy editing. |
This comment has been minimized.
This comment has been minimized.
durka
commented
Nov 9, 2018
"type value" is not good IMO. How about
and
|
petrochenkov
commented
Nov 9, 2018
@bors r+ |
bors
commented
Nov 9, 2018
📌 Commit 5f569e2b43b455b7c4bdf6469ecb05829dba1461 has been approved by |
bors
commented
Nov 11, 2018
☔ The latest upstream changes (presumably #55859) made this pull request unmergeable. Please resolve the merge conflicts. |
5f569e2 to
5cbd6e3Compareestebank
commented
Nov 12, 2018
@bors r=petrochenkov |
bors
commented
Nov 12, 2018
📌 Commit 5cbd6e3df7cbd2c613af6d8dc0faf0663bbe2e36 has been approved by |
bors
commented
Nov 18, 2018
⌛ Testing commit 5cbd6e3df7cbd2c613af6d8dc0faf0663bbe2e36 with merge 42741ddb5182fac9cb0afb1f8425ae963b0b9db4... |
bors
commented
Nov 18, 2018
💔 Test failed - status-travis |
This comment has been minimized.
This comment has been minimized.
When confusing an associated type with a type argument, suggest the appropriate syntax. Given `Iterator<isize>`, suggest `Iterator<Item = isize>`.
This is a somewhat arbitrary restriction in order to be consistent in the output of the tests regardless of target platform.
5cbd6e3 to
510f836Compareestebank
commented
Nov 22, 2018
@bors r=petrochenkov |
bors
commented
Nov 22, 2018
📌 Commit 510f836 has been approved by |
bors
commented
Nov 23, 2018
Suggest correct syntax when writing type arg instead of assoc type - When confusing an associated type with a type argument, suggest the appropriate syntax. Given `Iterator<isize>`, suggest `Iterator<Item = isize>`. - When encountering multiple missing associated types, emit only one diagnostic. - Point at associated type def span for context. - Point at each extra type argument. Follow up to #48288, fix#20977.
bors
commented
Nov 23, 2018
☀️ Test successful - status-appveyor, status-travis |
Iterator<isize>, suggestIterator<Item = isize>.Follow up to #48288, fix#20977.