os-rust/compiler/rustc_parse/src
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
..
lexer Fix suggestion for attempting to define a string with single quotes 2023-08-16 21:51:57 +01:00
parser Detect missing => after match guard during parsing 2023-10-03 21:21:02 +00:00
errors.rs Detect missing => after match guard during parsing 2023-10-03 21:21:02 +00:00
lib.rs Use relative positions inside a SourceFile. 2023-09-03 12:56:10 +00:00
validate_attr.rs Remove MacDelimiter. 2023-08-03 09:03:30 +10:00