rust/compiler/rustc_parse/src/parser
Esteban Küber 745c1ea438 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-03 21:21:02 +00: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 Detect missing => after match guard during parsing 2023-10-03 21:21:02 +00:00
generics.rs fix couple of clippy findings: 2023-07-23 10:50:14 +02:00
item.rs Add explanatory note to 'expected item' error 2023-09-06 09:05:07 +05:30
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 suggest removing impl in generic trait bound position 2023-08-29 20:27:38 +02:00