-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE trying to port to new ops::Fn with trait-parametrized impl #23827
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
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
Providing the associated type for FnOnce avoids this ICE. impl<C: Component> FnOnce<(C,)> for Prototype {
type Output = Prototype;
extern "rust-call" fn call_once(self, (comp,): (C,)) -> Prototype {
Fn::call(&self, (comp,))
}
} |
This works. Thanks! |
Closed
ebfull
added a commit
to ebfull/rust
that referenced
this issue
Apr 13, 2015
An actual typeck error is the cause of many failed compilations but an unrelated bug is being reported instead. It is triggered because a typeck error is presumably not yet identified during compiler execution, which would normally bypass an invariant in the presence of other errors. In this particular situation, we delay the reporting of the bug until abort_if_errors(). Closes rust-lang#23827, closes rust-lang#24356, closes rust-lang#23041, closes rust-lang#22897, closes rust-lang#23966, closes rust-lang#24013, and closes rust-lang#23729
alexcrichton
pushed a commit
to alexcrichton/rust
that referenced
this issue
Apr 22, 2015
alexcrichton
pushed a commit
to alexcrichton/rust
that referenced
this issue
Apr 23, 2015
bors
added a commit
that referenced
this issue
Apr 26, 2015
An actual typeck error is the cause of many failed compilations but an unrelated bug is being reported instead. It is triggered because a typeck error is presumably not yet identified during compiler execution, which would normally bypass an invariant in the presence of other errors. In this particular situation, we delay the reporting of the bug until abort_if_errors(). Closes #23827, closes #24356, closes #23041, closes #22897, closes #23966, closes #24013, and closes #23729 **There is at least one situation where this bug may still be genuinely triggered (#23437).**
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Script to reproduce:
Output:
Meta
rustc 1.0.0-nightly (199bdcf 2015-03-26) (built 2015-03-27)
binary: rustc
commit-hash: 199bdcf
commit-date: 2015-03-26
build-date: 2015-03-27
host: x86_64-unknown-linux-gnu
release: 1.0.0-nightly
The text was updated successfully, but these errors were encountered: