]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Remove Parser::parse_tuple_index_expr_float
authorOwen Avery <powerboat9.gamer@gmail.com>
Sat, 23 Aug 2025 19:32:13 +0000 (15:32 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 30 Oct 2025 19:58:50 +0000 (20:58 +0100)
commit4b1427f749689b94eb1c067d65c2730f1bcab386
treeaaef70b692b3e402f23b327431b6d2acef33fbe9
parent94085d2f30d0e39d23640cba74c499b004cda260
gccrs: 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>
gcc/rust/parse/rust-parse-impl.h
gcc/testsuite/rust/compile/parse_float_dot.rs [new file with mode: 0644]