rust/compiler/rustc_parse/src
Guillaume Gomez 94617802a1
Rollup merge of #84793 - estebank:parse-struct-field-default, r=davidtwco
Recover from invalid `struct` item syntax

Parse unsupported "default field const values":

```rust
struct S {
    field: Type = const_val,
}
```

Recover from small `:` typo and provide suggestion:

```rust
struct S {
    field; Type,
    field2= Type,
}
```
2021-05-12 17:19:25 +02:00
..
lexer Make Diagnostic::span_fatal unconditionally raise an error 2021-05-08 23:12:04 -04:00
parser Recover from invalid struct item syntax 2021-05-11 18:48:57 -07:00
lib.rs Use local and remapped paths where appropriate 2021-05-05 15:31:28 +01:00
validate_attr.rs ast: Remove some indirection layers from values in key-value attributes 2021-01-09 21:50:39 +03:00