-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Unexpected tail in unsized_info_ty with complex futures #40274
Comments
Just wanted to say that I am having the same problem in my code as well. Any workarounds for it? |
I got similar crashes ("Unexpected tail in unsized_info_ty") when I was using Switching to boxed futures was the simplest workaround. Besides boxing, I seem to remember I also managed to avoid ICEs by adding type annotations to my callback closures. (Particularly return types HTH! |
@pshc Thanks for your answer! I fear the problem is even deeper. I went back to the code, added the type annotations and magic! it worked! But then I got curious and removed the type annotations. And... it still works! I feel like in a Lovecraft story. |
@Victor-Savu I'm spooked! 👻 |
I am not able to reproduce:
Is this still happening, @varkor ? |
I assume this was meant to be for me? No, I can't reproduce any more either, the problem (or, all the problems) seem to have gone away. Unless someone else has a still failing example, I guess this can be closed. |
Whoops, tab complete messed up, sorry. Yeah, let's close. |
When I do
cargo test
on this code: https://github.com/vorner/tokio-jsonrpc/tree/bug, I get an internal compiler error (the full error is below). It might be related to #40231, or #37096, but they feel a bit different, so I'm opening a new issue. I didn't attempt to minimize the example, but I have few observations:tests/endpoint.rs
takes a very long time even when it is short. Maybe there's some kind of limit of something (type complexity?) and the compiler gives up?seq
test intests/endpoint.rs
. If I comment the line https://github.com/vorner/tokio-jsonrpc/blob/bug/tests/endpoint.rs#L312, the problem goes away.client_endpoint_finished
one, it depends on the order. If I callclient_endpoint_finished.join(the_big_one)
, I get a compile error (which I think is also wrong, because I use such futures in the rest of the tests and they work and each one of the futures separately can be used). If I do it in reverse (just changing the.join3(...)
line tojoin(client_endpoint_finished)
, I get the internal compiler error. The compile error is:The backtrace and versions of nightly are:
Backtraces of the other versions (stable, nightly) can be found here: https://travis-ci.org/vorner/tokio-jsonrpc/builds/207742553.
Is there any other info I might try providing?
The text was updated successfully, but these errors were encountered: