-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
1.25.0-nightly: internal compiler error: unresolved type in dtorck #48132
Comments
@bbigras: Can you post the code snippet or repository that you're compiling? |
It appears this has regressed since #47322. |
I'm running into the same issue on rustc 1.25.0-nightly (45fba43 2018-02-10) Any tips on determining which piece of code is causing this? |
To anyone experiencing this issue: It would be very helpful to post either a self-contained snippet or link to a repository that causes this crash. |
I'll privately share my horrible code after work if nobody beats me to it. Last night I saw that the problem went away if I removed "nll". It seems I didn't need it on that project. |
Here's a minimal code to reproduce the problem. Note that it builds if we remove the "nll" feature. nightly-x86_64-pc-windows-msvc (default) [dependencies]
futures-await = "0.1"
tokio-core = "0.1"
tokio-retry = "0.1" #![feature(proc_macro, conservative_impl_trait, generators, nll)]
extern crate futures_await as futures;
extern crate tokio_core;
extern crate tokio_retry;
use futures::prelude::*;
use tokio_core::reactor::Handle;
use tokio_retry::Retry;
use tokio_retry::strategy::ExponentialBackoff;
#[async]
fn something(handle: Handle) -> Result<(), ()> {
let retry_strategy = ExponentialBackoff::from_millis(10).take(3);
let retry_future = Retry::spawn(handle, retry_strategy, move || {
let future_of_1 = futures::future::ok::<(), ()>(());
future_of_1
}).map_err(|_| ());
await!(retry_future)
}
fn main() {} |
I have another minimal repro. This one relies only on the standard library.
It seems the error comes from the usage of an associated type (here, I found this by isolating the source of the error on one my projects and found that it was caused by the |
Question: is everyone here using NLL? I encountered this problem as well, but only with NLL enabled. Similarly, @FraGag's example appears to work unless you enable NLL. I see that @bbigras also mentions needing NLL. |
Turns out that this works on my upcoming branch. |
That is, #48411 |
nightly-x86_64-pc-windows-msvc (default)
rustc 1.25.0-nightly (3bcda48 2018-02-09)
I'm using tokio_retry and futures_await.
The text was updated successfully, but these errors were encountered: