rust/compiler/rustc_parse
Matthias Krüger 8f493fd46a
Rollup merge of #95293 - compiler-errors:braces, r=davidtwco
suggest wrapping single-expr blocks in square brackets

Suggests a fix in cases like:

```diff
- const A: [i32; 1] = { 1 };

+ const A: [i32; 1] = [ 1 ];
                      ^   ^
```

Also edit the message for the same suggestion in the parser (e.g. `{ 1, 2 }`).

Fixes #95289
2022-04-01 06:59:42 +02:00
..
src Rollup merge of #95293 - compiler-errors:braces, r=davidtwco 2022-04-01 06:59:42 +02:00
Cargo.toml Lint against RTL unicode codepoints in literals and comments 2021-10-31 13:14:04 +01:00