bors
e628196d41
Auto merge of #57291 - euclio:method-call-suggestion, r=estebank
...
use structured suggestion for method calls
Furthermore, don't suggest calling the method if it is part of a place
expression, as this is invalid syntax.
I'm thinking it might be worth putting a label on the method assignment span like "this is a method" and removing the span from the "methods are immutable" text so it isn't reported twice.
The suggestions in `src/test/ui/did_you_mean/issue-40396.stderr` are suboptimal. I could check if the containing expression is `BinOp`, but I'm not sure if that's general enough. Any ideas?
r? @estebank
2019-01-06 10:30:05 +00:00
..
2019-01-02 11:02:30 -05:00
2019-01-05 23:56:48 +08:00
2019-01-05 23:56:48 +08:00
2018-12-31 20:43:08 -05:00
2018-12-31 20:43:08 -05:00
2018-12-31 20:43:08 -05:00
2019-01-02 17:35:06 -05:00
2019-01-05 22:25:47 +00:00
2019-01-04 10:19:22 +01:00
2019-01-05 23:56:48 +08:00
2019-01-06 10:30:05 +00:00
2019-01-01 12:53:07 -05:00
2019-01-06 10:30:05 +00:00
2019-01-01 12:53:07 -05:00
2019-01-05 23:56:48 +08:00
2018-12-31 20:43:08 -05:00
2019-01-05 23:56:48 +08:00
2018-12-31 20:43:08 -05:00
2019-01-02 17:35:06 -05:00
2019-01-02 17:35:06 -05:00
2018-12-31 20:43:08 -05:00
2019-01-03 22:15:02 +00:00
2019-01-01 02:08:39 +00:00
2019-01-06 10:30:05 +00:00
2018-12-31 20:43:08 -05:00
2019-01-05 22:25:47 +00:00
2018-12-31 20:43:08 -05:00
2019-01-02 17:35:06 -05:00
2019-01-02 11:02:30 -05:00
2018-12-31 20:43:08 -05:00
2019-01-06 10:30:05 +00:00
2019-01-05 23:56:48 +08:00
2019-01-05 23:56:48 +08:00
2019-01-01 23:30:34 +00:00
2019-01-01 01:39:55 +03:00
2018-12-31 20:43:08 -05:00
2019-01-01 12:53:07 -05:00
2019-01-02 17:35:06 -05:00
2019-01-01 12:53:07 -05:00
2019-01-01 12:53:07 -05:00
2019-01-02 11:59:15 +00:00
2019-01-01 12:53:07 -05:00
2019-01-01 12:53:07 -05:00
2019-01-01 12:53:07 -05:00
2019-01-02 11:59:15 +00:00
2018-12-31 20:56:19 +00:00
2018-12-31 20:43:08 -05:00
2019-01-06 10:30:05 +00:00
2019-01-01 12:53:07 -05:00
2019-01-01 12:53:07 -05:00
2019-01-01 12:53:07 -05:00
2019-01-02 17:35:06 -05:00
2019-01-03 13:42:52 -05:00
2019-01-03 13:42:52 -05:00
2018-12-31 20:43:08 -05:00
2019-01-01 23:59:32 +03:00
2019-01-01 23:59:32 +03:00
2018-12-31 20:43:08 -05:00
2019-01-03 13:42:52 -05:00
2018-12-31 20:43:08 -05:00
2018-12-31 20:43:08 -05:00
2018-12-31 20:43:08 -05:00
2019-01-02 17:35:05 -05:00
2019-01-02 17:35:06 -05:00
2018-12-31 20:43:08 -05:00
2018-12-31 20:43:08 -05:00
2018-12-31 20:43:08 -05:00
2018-12-31 20:43:08 -05:00
2019-01-01 12:53:07 -05:00
2019-01-01 12:53:07 -05:00
2019-01-01 12:53:07 -05:00
2019-01-01 12:53:07 -05:00
2019-01-01 12:53:07 -05:00
2019-01-01 12:53:07 -05:00