Commit f3b1c2a
committed
gccrs: fix parser error on parenthesised types
Do not cast parenthesised types to TraitBound types
gcc/rust/ChangeLog:
* ast/rust-path.cc (TypePath::to_trait_bound):
* hir/tree/rust-hir-type.cc (ParenthesisedType::to_trait_bound):
* hir/tree/rust-hir.cc (TypePath::to_trait_bound):
* parse/rust-parse-impl.h (Parser::parse_paren_prefixed_type):
* parse/rust-parse-impl.h (Parser::parse_paren_prefixed_type):
Signed-off-by: lenny.chiadmi-delage <lenny.chiadmi-delage@epita.fr>1 parent 177b601 commit f3b1c2a
File tree
3 files changed
+16
-1
lines changed- gcc/rust
- ast
- hir/tree
3 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
293 | 298 | | |
294 | 299 | | |
295 | 300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
106 | 111 | | |
107 | 112 | | |
108 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2798 | 2798 | | |
2799 | 2799 | | |
2800 | 2800 | | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
2801 | 2806 | | |
2802 | 2807 | | |
2803 | 2808 | | |
| |||
0 commit comments