Commit cd4d7a7
Remove Parser::parse_tuple_index_expr_float
Unlike in C, floating point literals can't start with a '.', and
therefore could never be split into a '.' followed by an integer.
gcc/rust/ChangeLog:
* parse/rust-parse-impl.h (Parser::left_denotation): Remove
usage of parse_tuple_index_expr_float.
(Parser::parse_closure_expr_pratt): Remove function.
gcc/testsuite/ChangeLog:
* rust/compile/parse_float_dot.rs: New test.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>1 parent 85be45d commit cd4d7a7
File tree
2 files changed
+3
-35
lines changed- gcc
- rust/parse
- testsuite/rust/compile
2 files changed
+3
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13032 | 13032 | | |
13033 | 13033 | | |
13034 | 13034 | | |
13035 | | - | |
13036 | | - | |
13037 | | - | |
13038 | | - | |
13039 | | - | |
13040 | | - | |
13041 | 13035 | | |
13042 | 13036 | | |
13043 | 13037 | | |
| |||
14570 | 14564 | | |
14571 | 14565 | | |
14572 | 14566 | | |
14573 | | - | |
14574 | | - | |
14575 | | - | |
14576 | | - | |
14577 | | - | |
14578 | | - | |
14579 | | - | |
14580 | | - | |
14581 | | - | |
14582 | | - | |
14583 | | - | |
14584 | | - | |
14585 | | - | |
14586 | | - | |
14587 | | - | |
14588 | | - | |
14589 | | - | |
14590 | | - | |
14591 | | - | |
14592 | | - | |
14593 | | - | |
14594 | | - | |
14595 | | - | |
14596 | | - | |
14597 | | - | |
14598 | | - | |
14599 | | - | |
14600 | | - | |
14601 | | - | |
14602 | 14567 | | |
14603 | 14568 | | |
14604 | 14569 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments