rust/compiler/rustc_parse/src/parser
Jubilee 0d68e416a5
Rollup merge of #116400 - estebank:issue-78585, r=WaffleLapkin
Detect missing `=>` after match guard during parsing

```
error: expected one of `,`, `:`, or `}`, found `.`
  --> $DIR/missing-fat-arrow.rs:25:14
   |
LL |         Some(a) if a.value == b {
   |                               - while parsing this struct
LL |             a.value = 1;
   |             -^ expected one of `,`, `:`, or `}`
   |             |
   |             while parsing this struct field
   |
help: try naming a field
   |
LL |             a: a.value = 1;
   |             ++
help: you might have meant to start a match arm after the match guard
   |
LL |         Some(a) if a.value == b => {
   |                                 ++
```

Fix #78585.
2023-10-06 16:37:47 -07:00
..
attr_wrapper.rs Adjust to_attr_token_stream. 2023-09-06 17:12:07 +10:00
attr.rs Avoid too many expected symbols and reduce Nones 2023-08-03 08:56:31 +00:00
diagnostics.rs Tweak wording of missing angle backets in qualified path 2023-09-28 00:37:20 +00:00
expr.rs review comments 2023-10-04 01:35:07 +00:00
generics.rs fix couple of clippy findings: 2023-07-23 10:50:14 +02:00
item.rs Gate against auto traits pre-expansion 2023-10-03 19:12:00 +00:00
mod.rs Detect missing => after match guard during parsing 2023-10-03 21:21:02 +00:00
nonterminal.rs Rename NtOrTt as ParseNtResult. 2023-08-18 16:50:41 +10:00
pat.rs Only suggest turbofish in patterns if we may recover 2023-09-12 16:38:59 +02:00
path.rs Avoid too many expected symbols and reduce Nones 2023-08-03 08:56:31 +00:00
stmt.rs Avoid too many expected symbols and reduce Nones 2023-08-03 08:56:31 +00:00
ty.rs Point to where missing return type should go 2023-10-04 21:09:54 +00:00