-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE in ty_fn_sig() with polymorphic values #6458
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
Comments
I also get it with this small program: fn foo<T>(t: T) {}
fn main() { foo(fail!()); } |
@catamorphism This might relate to your derived type error work. |
Use of
|
haha oops, ran into it again when trying to return a transmuted value (accidentally had a semicolon on the end)
|
I think I just ran into this. Here's the extracted code: fn foo(b: bool) -> Result<bool,~str> {
Err(~"bar");
}
fn main() {
foo(false);
} Removing the semi-colon fixes the issue. |
nominating for production ready |
This is fixed. I'll check in test cases. |
needless_doctest_main: handle correctly parse errors Before this change, finding an error when parsing a doctest would make Clippy exit without emitting an error. Now we properly catch a fatal error and ignore it. Also, if a doctest specifies an edition in the info line, it will be used when parsing it. changelog: needless_doctest_main: handle correctly parse errors Fixes rust-lang#6022
Sorry, I don't know a good title for this. (EDIT(bblum): better title)
I was playing with Rust and types and so on, and ended up with the following minimal test case for my problem:
The following is the result of compilation:
The text was updated successfully, but these errors were encountered: