Commit 107e3fe
committed
gccrs: fix parser error on parenthesised types
Do not cast parenthesised types to TraitBound types
Fixes #4148
gcc/rust/ChangeLog:
* parse/rust-parse-impl.h (Parser::parse_paren_prefixed_type):
gcc/testsuite/ChangeLog:
* rust/compile/issue-4148.rs:
Signed-off-by: lenny.chiadmi-delage <[email protected]>1 parent b92a684 commit 107e3fe
File tree
2 files changed
+29
-20
lines changed- gcc
- rust/parse
- testsuite/rust/compile
2 files changed
+29
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9460 | 9460 | | |
9461 | 9461 | | |
9462 | 9462 | | |
| 9463 | + | |
| 9464 | + | |
| 9465 | + | |
| 9466 | + | |
| 9467 | + | |
| 9468 | + | |
| 9469 | + | |
| 9470 | + | |
9463 | 9471 | | |
9464 | 9472 | | |
9465 | | - | |
9466 | | - | |
9467 | | - | |
9468 | | - | |
9469 | | - | |
9470 | | - | |
9471 | | - | |
9472 | | - | |
9473 | | - | |
9474 | | - | |
9475 | | - | |
9476 | | - | |
9477 | 9473 | | |
9478 | | - | |
9479 | | - | |
| 9474 | + | |
| 9475 | + | |
| 9476 | + | |
| 9477 | + | |
| 9478 | + | |
| 9479 | + | |
| 9480 | + | |
| 9481 | + | |
| 9482 | + | |
| 9483 | + | |
| 9484 | + | |
| 9485 | + | |
| 9486 | + | |
9480 | 9487 | | |
9481 | | - | |
9482 | | - | |
9483 | | - | |
9484 | | - | |
| 9488 | + | |
| 9489 | + | |
| 9490 | + | |
| 9491 | + | |
| 9492 | + | |
| 9493 | + | |
| 9494 | + | |
| 9495 | + | |
9485 | 9496 | | |
9486 | 9497 | | |
9487 | 9498 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
0 commit comments