-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
ICE unexpected type in type_metadata: impl core::future::future::Future #58888
Comments
|
Can you post the source code, or an example that reproduces this? Is this also happening on older nightlies or did this recently appear? |
Only the last nightly. I have no idea what code is causing this. It does not occur when I run |
The stacktrace also mentions WASM, are you targeting that, and does it happen with other targets too? |
I'm not targeting WASM. I played a bit with how much of my code I can remove until it starts compiling again. This is causing the same error: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=b1e77a15da5f42edcd4031dd6af8939f |
It seems this only panics when the functions are implemented as methods, so when you remove the structure it does compile. |
Great, thanks! (we don't seem to track nightly-to-nightly regressions anymore) |
The stacktrace in the minimal example is different:
|
Same problem on linux... |
There’s a good chance it’s related to #58077, I’ll try to take a look into it. |
Reproducer with generators directly.
|
I have a fix, just need to find some wifi to open the PR. |
For tracking purpose, looks like
|
I just ran into the same exact issue:
> rustc +nightly --version --verbose
|
As a workaround until the tree is reopened and the fix is merged you can use |
Thanks!!! That's an excellent suggestion as a temporary work around - and works like charm. It's as simple as configuring the dev and test profiles in
https://doc.rust-lang.org/cargo/reference/manifest.html#the-profile-sections |
… r=Zoxc Monomorphize generator field types for debuginfo Fixes rust-lang#58888 r? @Zoxc
Latest nightly (
x86_64-pc-windows-msvc
) panics when I runcargo test
on my codebase usingasync await
.The text was updated successfully, but these errors were encountered: