Skip to content

gccrs: Fix bug in query type stopping PartialOrd#3825

Merged
philberty merged 1 commit into
masterfrom
phil/partial-ord
Jun 14, 2025
Merged

gccrs: Fix bug in query type stopping PartialOrd#3825
philberty merged 1 commit into
masterfrom
phil/partial-ord

Conversation

@philberty

Copy link
Copy Markdown
Member

There was a complex recurisve type query hierarchy here but the type was resolved so we can just do an early return here

gcc/rust/ChangeLog:

* typecheck/rust-type-util.cc (query_type): early return.

gcc/testsuite/ChangeLog:

* rust/execute/torture/basic_partial_ord1.rs: New test.
* rust/execute/torture/basic_partial_ord2.rs: New test.

There was a complex recurisve type query hierarchy here but the type was
resolved so we can just do an early return here

gcc/rust/ChangeLog:

	* typecheck/rust-type-util.cc (query_type): early return.

gcc/testsuite/ChangeLog:

	* rust/execute/torture/basic_partial_ord1.rs: New test.
	* rust/execute/torture/basic_partial_ord2.rs: New test.

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
@philberty philberty added this pull request to the merge queue Jun 14, 2025
Merged via the queue into master with commit 795f73e Jun 14, 2025
12 checks passed
@philberty philberty deleted the phil/partial-ord branch June 21, 2025 14:01
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.

1 participant