Commit 467429f
authored
Rollup merge of rust-lang#147864 - fee1-dead-contrib:consttraitparse, r=fmease
Parse `const unsafe trait` properly
Previously, this was greedily stolen by the `fn` parsing logic.
r? project-const-traitsFile tree
2 files changed
+17
-1
lines changed- compiler/rustc_parse/src/parser
- tests/ui/traits/const-traits
2 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2664 | 2664 | | |
2665 | 2665 | | |
2666 | 2666 | | |
2667 | | - | |
| 2667 | + | |
| 2668 | + | |
| 2669 | + | |
| 2670 | + | |
2668 | 2671 | | |
2669 | 2672 | | |
2670 | 2673 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments