This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
Handle let _ = x
in coercing closures to FnPtr
#23
Labels
enhancement
New feature or request
Milestone
Consider the following closure:
When
capture_disjoint_fields
is enabled, this closure doesn't capturex
, implyingc
can be coerced to anFnPtr
.However, the code that checks if coercion can happen depends on
upvars_mentioned
which are computed before the capture analysis and would result in an error.The text was updated successfully, but these errors were encountered: