-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Internal compiler error when trying to spawn a native function as a task #506
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
Comments
Does this repro when you wrap |
No, that was my workaround. |
I asked pcwalton about this in IRC. He said we just need to make the alt inside ret_ty_of_fn_ty handle ty_native_fn too. It should be a pretty simple fix. |
Rob, when you get the chance, can you see if this patch fixes the problem for you? |
Sorry for the delay here. It seems like it should fix the issue but it doesn't. Here is my reduced test case: https://gist.github.com/1034937 |
Thanks for reducing this test case! I'll see if I can get this bug fixed today. |
Give pre-RFC suggestions and clarify PR process
* Add initial version of contributing guide. * Highlight the preferential usage of the Enzyme compiler explorer to explore bugs and issues.
I see 'internal compiler error ret_ty_of_fn_ty() called on non-function type' when trying to compile:
native "rust" mod rustrt {
fn uvtask();
}
fn iotask() {
let task iothread = spawn rustrt::uvtask();
}
The text was updated successfully, but these errors were encountered: