rust/compiler/rustc_parse/src/parser
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
..
attr.rs Provide more context on incorrect inner attribute 2021-09-02 19:08:30 +00:00
attr_wrapper.rs Fix more “a”/“an” typos 2021-08-22 17:27:18 +02:00
diagnostics.rs Auto merge of #88598 - estebank:type-ascription-can-die-in-a-fire, r=wesleywiser 2021-09-04 01:40:36 +00:00
expr.rs Rollup merge of #88553 - theo-lw:issue-88276, r=estebank 2021-09-08 12:24:16 -04:00
generics.rs Require passing an AttrWrapper to collect_tokens_trailing_token 2021-02-13 12:07:15 -05:00
item.rs Compute proc_macros in resolutions. 2021-09-01 20:13:16 +02:00
mod.rs Auto merge of #88386 - estebank:unmatched-delims, r=jackh726 2021-09-03 03:13:18 +00:00
nonterminal.rs Use if-let guards in the codebase 2021-08-25 20:24:35 +02:00
pat.rs Use multispan suggestions more often 2021-07-30 09:26:31 -07:00
path.rs Fix handling of unmatched angle brackets in parser 2021-06-05 00:31:28 +02:00
stmt.rs Detect bare blocks with type ascription that were meant to be a struct literal 2021-09-03 14:43:04 +00:00
ty.rs Introduce ~const 2021-08-27 05:07:37 +00:00