-
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
ICE: substs.types.all(|t| !ty::type_needs_infer(*t)) #15924
Comments
cc me |
I have encountered this error
on a relatively simple program: http://pastebin.com/x7VXrPTS The error is triggered by
The build script is http://pastebin.com/5ukaG81S |
I encountered this bug today. I've managed to simplify it somewhat, but it still relies on using another crate ( #![feature(unsafe_destructor)]
extern crate serialize;
use std::io::IoError;
use serialize::{Encoder, Encodable};
use serialize::json;
struct Foo<T> {
v: T,
}
#[unsafe_destructor]
impl<'a, T: Encodable<json::Encoder<'a>, IoError>> Drop for Foo<T> {
fn drop(&mut self) {
json::encode(&self.v);
}
}
fn main() {
let _ = Foo { v: 10i };
} |
My test case above no longer triggers this error because of the new inference scheme. I would suspect that this issue has been fixed, but I can’t test the other cases at the moment. |
Fixed for me too! |
internal: Remove debugging code in path resolution Closes rust-lang#15924
I didn't manage to reproduce the ICE on a small scale so it's unlikely to be fixed, but I was advised to report it anyawy.
This code triggers it: https://github.com/tomaka/rust-hl-lua/blob/1d1a2a462889d32caf6cb2d721913505019b274f/rust-hl-lua/tests/lua_tables_tests.rs#L55 and more precisely the function call at line 67.
Coming from this commit: tomaka/hlua@1d1a2a4
Using version:
rustc 0.12.0-pre-nightly (f15d6d28396e8700b6c3f2704204a2769e710403 2014-07-20 22:46:29 +0000)
but also happens with today's nightly.The text was updated successfully, but these errors were encountered: