Skip to content

Conversation

powerboat9
Copy link
Collaborator

Unlike in C, floating point literals can't start with a ., and therefore could never be split into a . followed by an integer.

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 <[email protected]>
Copy link
Member

@CohenArthur CohenArthur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@CohenArthur CohenArthur added this pull request to the merge queue Aug 26, 2025
Merged via the queue into Rust-GCC:master with commit cd4d7a7 Aug 26, 2025
13 checks passed
@powerboat9 powerboat9 deleted the no-dot branch August 26, 2025 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants