Skip to content

Conversation

powerboat9
Copy link
Collaborator

Fixes #4155

Fixes Rust-GCC#4155.

gcc/rust/ChangeLog:

	* parse/rust-parse-impl.h (Parser::parse_pattern): Ignore
	inner patterns which fail to parse.

gcc/testsuite/ChangeLog:

	* rust/compile/issue-4155.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.

Good find!

@CohenArthur CohenArthur added this pull request to the merge queue Sep 15, 2025
Merged via the queue into Rust-GCC:master with commit b45db77 Sep 15, 2025
13 checks passed
@powerboat9 powerboat9 deleted the fix-parse branch September 16, 2025 22:17
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.

segfault clone_pattern / Rust::AST::AltPattern::AltPattern

2 participants