rust/compiler/rustc_parse/src
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
..
lexer Fix suggestion for attempting to define a string with single quotes 2023-08-16 21:51:57 +01:00
parser Rollup merge of #116400 - estebank:issue-78585, r=WaffleLapkin 2023-10-06 16:37:47 -07: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