Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upICE: unexpected panic in InferCtxt #28550
Comments
This comment has been minimized.
This comment has been minimized.
|
Reduced test case: // Using F directly causes it to compile.
struct A<F: FnOnce()>(F::Output);
struct B<F: FnOnce()>(A<F>);
// Removing Option causes it to compile.
fn foo<F: FnOnce()>(f: F) -> Option<B<F>> {
panic!()
}
fn main() {
|| foo(||());
} |
sanxiyn
added
the
I-ICE
label
Sep 22, 2015
arielb1
added
the
regression-from-stable-to-beta
label
Sep 24, 2015
This comment has been minimized.
This comment has been minimized.
|
This is a 1.3-1.4 regression. I accidentally caused it in 9b75a2b. |
arielb1
pushed a commit
to arielb1/rust
that referenced
this issue
Sep 24, 2015
arielb1
referenced this issue
Sep 24, 2015
Merged
use the infcx tables to check if a closure is Copy #28626
This comment has been minimized.
This comment has been minimized.
|
triage: I-nominated |
rust-highfive
added
the
I-nominated
label
Sep 24, 2015
alexcrichton
added
the
T-compiler
label
Sep 24, 2015
This comment has been minimized.
This comment has been minimized.
|
triage: P-medium |
rust-highfive
added
P-medium
and removed
I-nominated
labels
Oct 1, 2015
bors
added a commit
that referenced
this issue
Oct 2, 2015
bors
closed this
in
#28626
Oct 2, 2015
brson
added a commit
to brson/rust
that referenced
this issue
Oct 16, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
khernyo commentedSep 20, 2015
Compiling the following code causes a panic:
Compiler output:
I compiled with
rustc main.rsMeta
rustc 1.5.0-nightly (6e5a325 2015-09-19)
binary: rustc
commit-hash: 6e5a325
commit-date: 2015-09-19
host: x86_64-unknown-linux-gnu
release: 1.5.0-nightly