-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE: converted TraitPredicate
/ invalid predicate filter for 'remap_gat_vars_and_recurse_into_nested_projections'
#133275
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
C-bug
Category: This is a bug.
F-const_trait_impl
`#![feature(const_trait_impl)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
The original code #![feature(const_trait_impl)]
#[const_trait]
pub trait Owo<X = <IntEnum as Uwu>::T> {}
#[const_trait]
trait Foo3<T>
where
Self::Bar: Clone,
Self::Baz: Clone,
{
type Bar = Vec<Self::Baz>;
type Baz = T;
//~^ ERROR the trait bound `T: Clone` is not satisfied
} ICEs with Backtrace
, the autoreduced code #[const_trait]
trait Foo3<T>
where
Self::Bar: Clone,
Self::Baz: Clone,
{
type Bar = Vec<Self::Baz>;
} ICEs with Backtrace
in both cases next-solver didn't seem to make a difference 🤔 code example that does not show any diagnostics, only ICE: #![feature(const_trait_impl)]
#![feature(associated_type_defaults)]
#[const_trait]
trait Foo3<T>
where
Self::Baz: Clone,
{
type Baz = T;
}
pub fn main() {} |
bisects to #131985 |
Bonus ice:
but I assume that this the same underlying issue |
ya same issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
F-const_trait_impl
`#![feature(const_trait_impl)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
auto-reduced (treereduce-rust):
original:
Version information
Possibly related line of code:
rust/compiler/rustc_hir_analysis/src/collect/predicates_of.rs
Lines 1045 to 1057 in 2d0ea79
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc
Program output
@rustbot label +F-const_trait_impl
The text was updated successfully, but these errors were encountered: