-
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: borrowck for user-type with inferred higher ranked type #102047
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-borrow-checker
Area: The borrow checker
A-higher-ranked
Area: Higher-ranked things (e.g., lifetimes, types, trait bounds aka HRTBs)
C-bug
Category: This is a bug.
glacier
ICE tracked in rust-lang/glacier.
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
lcnr
added
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
A-associated-items
Area: Associated items (types, constants & functions)
A-borrow-checker
Area: The borrow checker
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
C-bug
Category: This is a bug.
labels
Sep 20, 2022
Debugging leads to #102052, but I'm still surprised that we don't catch this during HIR typeck. |
Is this a duplicate of #79590 ? the stackrace looks very similar (also look who claimed that one :P 🙈 ) |
^^ not sure, can't tell without looking deeper |
matthiaskrgr
added a commit
to matthiaskrgr/glacier
that referenced
this issue
Sep 23, 2022
I get a panic with a bit simpler example (2 generic parameters to struct Ty1;
pub trait Trait<T> {}
pub trait WithAssoc1<'a> {
type Assoc;
}
impl<T> Trait<for<'a> fn(<T as WithAssoc1<'a>>::Assoc)> for T
where
T: for<'a> WithAssoc1<'a>
{
}
impl WithAssoc1<'_> for Ty1 {
type Assoc = ();
}
fn foo<T, V>()
where
T: for<'a> WithAssoc1<'a>,
T: Trait<V>,
{
}
fn main() {
foo::<Ty1, _>();
}
|
matthiaskrgr
added
the
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
label
Apr 15, 2024
fmease
added
the
A-higher-ranked
Area: Higher-ranked things (e.g., lifetimes, types, trait bounds aka HRTBs)
label
Sep 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-borrow-checker
Area: The borrow checker
A-higher-ranked
Area: Higher-ranked things (e.g., lifetimes, types, trait bounds aka HRTBs)
C-bug
Category: This is a bug.
glacier
ICE tracked in rust-lang/glacier.
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.
with the currently nightly/master:
The text was updated successfully, but these errors were encountered: