Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inference: Don't try to infer optimized opaque_closure #56557

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Conversation

Keno
Copy link
Member

@Keno Keno commented Nov 14, 2024

We don't have frontend syntax for it, but there is a use case for having :new_opaque_closure take an OC constructed from an optimized OpaqueClosure (and just replacing the capture environment). In this case, there is nothing inference can do to introspect into the opaque closure, so it just needs to bail out early.

We don't have frontend syntax for it, but there is a use case for
having `:new_opaque_closure` take an OC constructed from an optimized
OpaqueClosure (and just replacing the capture environment). In this
case, there is nothing inference can do to introspect into the opaque
closure, so it just needs to bail out early.
@Keno Keno merged commit d99d569 into master Nov 14, 2024
5 of 7 checks passed
@Keno Keno deleted the kf/optocinference branch November 14, 2024 19: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.

3 participants