Skip to content

Fix ICE generating unboxed closure type visitor glue #17760

New issue

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

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

Already on GitHub? # to your account

Merged
merged 2 commits into from
Oct 4, 2014

Conversation

bkoropoff
Copy link
Contributor

This is a quick fix. In the long term, the TyVisitor interface should be expanded to better represent closure types.

Closes issue #17737

This is a quick fix that prevents an ICE by mimicing the visitor
glue for boxed closures and bare functions.  Ideally, the `TyVisitor`
interface will be improved in the future to allow representing
more information about unboxed closures such as Fn/FnMut/FnOnce
status, capture mode, and captured free variable types and offsets.

Closes issue rust-lang#17737
@bkoropoff
Copy link
Contributor Author

r? @pcwalton

bors added a commit that referenced this pull request Oct 4, 2014
This is a quick fix.  In the long term, the `TyVisitor` interface should be expanded to better represent closure types.

Closes issue #17737
@bors bors closed this Oct 4, 2014
@bors bors merged commit 404db68 into rust-lang:master Oct 4, 2014
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants