Skip to content

gccrs: Add unify rules for fnptr and closures#3849

Merged
philberty merged 1 commit into
masterfrom
phil/fnptr-unify
Jun 22, 2025
Merged

gccrs: Add unify rules for fnptr and closures#3849
philberty merged 1 commit into
masterfrom
phil/fnptr-unify

Conversation

@philberty

Copy link
Copy Markdown
Member

Its valid to unify a closure to an fnptr as we are working on the fn traits. There are still other issues but this is part of the patch set.

gcc/rust/ChangeLog:

* typecheck/rust-unify.cc (UnifyRules::expect_fnptr): add unify rules

@powerboat9

Copy link
Copy Markdown
Collaborator

Only if it has no captures, I think

@powerboat9

Copy link
Copy Markdown
Collaborator

Have you updated your .clang-format file?

Its valid to unify a closure to an fnptr as we are working on the
fn traits. There are still other issues but this is part of the patch set.

gcc/rust/ChangeLog:

	* typecheck/rust-unify.cc (UnifyRules::expect_fnptr): add unify rules

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
@philberty philberty added this pull request to the merge queue Jun 22, 2025
Merged via the queue into master with commit a968963 Jun 22, 2025
12 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in libcore 1.49 Jun 22, 2025
@philberty philberty deleted the phil/fnptr-unify branch June 23, 2025 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants