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

Emulate <Box<F> as FnOnce>::call_once without alloca #916

Merged
merged 3 commits into from
Mar 11, 2020

Conversation

bjorn3
Copy link
Member

@bjorn3 bjorn3 commented Mar 10, 2020

This is one big hack to make it possible to call Box<dyn FnOnce>.

Fixes #884

cc #15

@bjorn3 bjorn3 added the C-enhancement Category: An issue proposing an enhancement or a PR with one. label Mar 10, 2020
@bjorn3
Copy link
Member Author

bjorn3 commented Mar 10, 2020

With this an unpatched rust-analyzer can be build by cg_clif.

@bjorn3 bjorn3 merged commit 3fa9366 into master Mar 11, 2020
@bjorn3 bjorn3 deleted the fn_once_for_box_without_alloca branch March 11, 2020 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot compile docs.rs
1 participant