Jack Huey
77ac329a08
Rollup merge of #88553 - theo-lw:issue-88276, r=estebank
...
Improve diagnostics for unary plus operators (#88276 )
This pull request improves the diagnostics emitted on parsing a unary plus operator. See #88276 .
Before:
```
error: expected expression, found `+`
--> src/main.rs:2:13
|
2 | let x = +1;
| ^ expected expression
```
After:
```
error: leading `+` is not supported
--> main.rs:2:13
|
2 | let x = +1;
| ^
| |
| unexpected `+`
| help: try removing the `+`
```
2021-09-08 12:24:16 -04:00
..
2021-07-29 14:56:05 -07:00
2021-07-29 14:56:05 -07:00
2021-08-30 13:09:38 +02:00
2021-09-08 12:24:16 -04:00
2021-09-07 18:08:46 -04:00
2021-09-02 06:06:24 +00:00
2021-08-30 20:17:45 -05:00
2021-08-21 13:27:27 -05:00
2021-09-04 01:40:36 +00:00
2021-09-05 16:14:41 +00:00
2021-09-05 16:14:41 +00:00
2021-09-07 12:31:11 +00:00
2021-09-06 12:38:55 +02:00
2021-09-02 12:29:11 +02:00
2021-08-30 22:18:55 -07:00
2021-09-06 00:14:41 +00:00
2021-09-04 01:40:36 +00:00
2021-08-30 20:18:39 -05:00
2021-07-29 14:56:05 -07:00
2021-07-29 14:56:05 -07:00
2021-09-07 18:08:46 -04:00
2021-09-07 18:08:46 -04:00
2021-09-06 23:58:16 +00:00
2021-08-27 16:21:25 -07:00
2021-09-06 22:38:06 -04:00
2021-09-05 21:40:34 +00:00
2021-08-22 17:27:18 +02:00
2021-09-05 21:40:34 +00:00
2021-08-27 20:47:00 +03:00
2021-08-26 10:40:27 -04:00
2021-08-19 19:30:04 +02:00
2021-09-04 07:17:12 +00:00
2021-09-07 18:08:46 -04:00
2021-09-05 16:14:41 +00:00
2021-09-05 18:50:55 +01:00
2021-09-08 12:24:16 -04:00
2021-07-29 14:56:05 -07:00
2021-09-05 21:40:34 +00:00
2021-08-21 13:27:27 -05:00
2021-09-02 19:23:11 +02:00
2021-09-06 23:58:16 +00:00
2021-09-01 11:10:58 -07:00
2021-09-06 11:20:59 -05:00
2021-09-07 18:08:46 -04:00
2021-08-22 16:35:29 +02:00
2021-09-06 11:20:59 -05:00
2021-09-03 00:23:10 +00:00
2021-08-29 16:25:28 +02:00
2021-09-05 16:14:41 +00:00
2021-09-06 22:38:06 -04:00
2021-08-27 01:07:17 +00:00
2021-08-27 01:07:17 +00:00
2021-09-06 22:38:06 -04:00
2021-09-08 07:27:41 +00:00