-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 using type_alias_impl_trait feature #68368
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
Centril
added
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
labels
Jan 19, 2020
jonas-schievink
added
C-bug
Category: This is a bug.
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
labels
Jan 19, 2020
Minimized slightly: #![feature(type_alias_impl_trait)]
trait Trait<T> {}
type Alias<'a, U> = impl Trait<U>;
fn f<'a>() -> Alias<'a, ()> {} Backtrace
|
This was referenced Jan 21, 2020
bors
added a commit
that referenced
this issue
Jan 23, 2020
Account for non-types in substs for opaque type error messages Fixes #68368 Previously, I assumed that the substs contained only types, which caused the computed index number to be wrong.
tmandry
added a commit
to tmandry/rust
that referenced
this issue
Jan 24, 2020
…estebank Account for non-types in substs for opaque type error messages Fixes rust-lang#68368 Previously, I assumed that the substs contained only types, which caused the computed index number to be wrong.
tmandry
added a commit
to tmandry/rust
that referenced
this issue
Jan 24, 2020
…estebank Account for non-types in substs for opaque type error messages Fixes rust-lang#68368 Previously, I assumed that the substs contained only types, which caused the computed index number to be wrong.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
To reproduce the bug:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=ce41fb8579806a997fb5f0830e30a874
Compiler version:
rustc 1.42.0-nightly (1ce08f9 2020-01-18) running on x86_64-unknown-linux-gnu
I also don't understand the error message:
error: type parameter
impl Fn(char) -> boolis part of concrete type but not used in parameter list for the
impl Traittype alias
The text was updated successfully, but these errors were encountered: