Commit 2d3670b
17: Add inline const expression and pattern r=matklad a=Veykril
To be able to address rust-lang/rust-analyzer#6848 in the (near) future. The name `ConstBlockPattern` was chosen since that's what the [rfc](https://rust-lang.github.io/rfcs/2920-inline-const.html) calls it.
CodeGen with this breaks RA in one file https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/body/lower.rs#L825, that is if the `"CONST_BLOCK_PAT"` has been added to KINDS_SRC.
I figure adding this now is a good time as the rust.ungrammar is being changed for lifetimes and macros2.0 anyways.
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
| 375 | + | |
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
| 381 | + | |
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
| 585 | + | |
585 | 586 | | |
586 | 587 | | |
587 | 588 | | |
| |||
636 | 637 | | |
637 | 638 | | |
638 | 639 | | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
0 commit comments