Commit 2fea79f
gccrs: fix ICE on missing pattern in while loop
Adds a proper check for missing patterns in while expressions.
Fixes #4162
gcc/rust/ChangeLog:
* parse/rust-parse-impl.h(Parser<ManagedTokenSource>::parse_while_let_loop_expr):
Add check for missing pattern.
gcc/testsuite/ChangeLog:
* rust/compile/issue-4162.rs: New test.
Signed-off-by: Lucas Ly Ba <lucas.ly-ba@outlook.com>1 parent c3ca1b9 commit 2fea79f
File tree
2 files changed
+17
-1
lines changed- gcc
- rust/parse
- testsuite/rust/compile
2 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8206 | 8206 | | |
8207 | 8207 | | |
8208 | 8208 | | |
8209 | | - | |
| 8209 | + | |
| 8210 | + | |
| 8211 | + | |
| 8212 | + | |
| 8213 | + | |
| 8214 | + | |
| 8215 | + | |
| 8216 | + | |
8210 | 8217 | | |
8211 | 8218 | | |
8212 | 8219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments