-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
static call to invalid vtable #20676
Comments
In Grust, I tried to change this line to: AsyncClosure::invoke(self.closure, args) The crate compiles without an issue, but compiling another crate where this is used results in an ICE that looks to be this one. |
Looks like I missed a case in #20341 |
Nominating for 1.0 beta. |
Are there any known workarounds for this problem? I ran into this in a hard way trying to update to the newest nightlies. |
I've been running into the following ICE: rust-lang/rust#20676
@shepmaster not sure, I'll try to get a PR up today |
@shepmaster a new type wrapper around the |
I just wanna run iron example on MAC 10.10 with rust-nightly, the same error occurs, I don't know if it's of the same case: error: internal compiler error: static call to invalid vtable: VtableObject(VtableObject(object_ty=error::Error + 'static)) |
This is also blocking Iron, which itself compiles well, but using the
|
is bound to a trait object. Fixes rust-lang#20676.
Fix in #21089, sorry for the delay. |
@nikomatsakis thanks for the work! I pulled your PR and built with it, and my code compiles again. Hooray! |
…ble-for-object Support UFCS style calls to a method defined in `Trait` where `Self` is bound to a trait object. Fixes rust-lang#20676. r? @alexcrichton
Discovered this ICE in the rollup that I'm preparing:
The text was updated successfully, but these errors were encountered: