-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 on higher-trait bounds #60218
Labels
A-traits
Area: Trait system
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-high
High priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
Centril
added
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
I-nominated
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
A-traits
Area: Trait system
labels
Apr 24, 2019
Backtrace:
Happens on stable, beta, nightly |
Litte bit simplified: use std::iter::Map;
pub trait Foo {}
pub fn trigger_error<I, F>(iterable: I, functor: F)
where
for<'t> &'t I: IntoIterator,
for<'t> Map<<&'t I as IntoIterator>::IntoIter, F>: Iterator,
for<'t> <Map<<&'t I as IntoIterator>::IntoIter, F> as Iterator>::Item: Foo,
{
}
fn main() {
trigger_error(vec![], |x: &u32| x)
} |
Bisection show ICE was introduced in c0bbc39, but I'm not sure how related that is, because it's a very very big PR. |
I will investigate. |
ping @nikomatsakis , any progress here? |
nikomatsakis
added
the
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
label
Sep 20, 2019
nikomatsakis
added a commit
to nikomatsakis/rust
that referenced
this issue
Oct 3, 2019
Centril
added a commit
to Centril/rust
that referenced
this issue
Oct 3, 2019
… r=centril add regression test for rust-lang#60218 Fixes rust-lang#60218
Centril
added a commit
to Centril/rust
that referenced
this issue
Oct 3, 2019
… r=centril add regression test for rust-lang#60218 Fixes rust-lang#60218
tmandry
added a commit
to tmandry/rust
that referenced
this issue
Oct 3, 2019
… r=centril add regression test for rust-lang#60218 Fixes rust-lang#60218
bors
added a commit
that referenced
this issue
Oct 3, 2019
Rollup of 11 pull requests Successful merges: - #61879 (Stabilize todo macro) - #64675 (Deprecate `#![plugin]` & `#[plugin_registrar]`) - #64690 (proc_macro API: Expose `macro_rules` hygiene) - #64706 (add regression test for #60218) - #64741 (Prevent rustdoc feature doctests) - #64842 (Disallow Self in type param defaults of ADTs) - #65004 (Replace mentions of IRC with Discord) - #65018 (Set RUST_BACKTRACE=0 in tests that include a backtrace in stderr) - #65055 (Add long error explanation for E0556) - #65056 (Make visit projection iterative) - #65057 (typo: fix typo in E0392) Failed merges: r? @ghost
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-traits
Area: Trait system
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-high
High priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code:
results in an ICE
Tested this on stable and nightly. May be somehow related to #60070.
The text was updated successfully, but these errors were encountered: