-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE with Bevy on nightly #87531
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
A-codegen
Area: Code generation
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
Apologies for not getting a more minimal example, bevy's ECS has a bunch of stuff going on. |
trait Fetch<'world> {
type Item;
}
struct Query<Q>(Q);
impl<Q: WorldQuery> Query<Q> {
fn get_mut(&mut self) -> <Q::Fetch as Fetch>::Item {
todo!()
}
}
trait WorldQuery {
type Fetch: for<'world> Fetch<'world>;
}
impl WorldQuery for () {
type Fetch = WorldFetch;
}
struct WorldFetch;
impl<'w, 's> Fetch<'w> for WorldFetch {
type Item = ();
}
fn get_children_mut<Q, C>(q: &mut Query<Q>, callback: C)
where
Q: WorldQuery,
C: Fn(<<Q as WorldQuery>::Fetch as Fetch>::Item),
{
callback(q.get_mut());
}
fn main() {
get_children_mut(&mut Query(()), |_| {});
} Backtrace
@rustbot modify labels: -E-needs-mcve |
Closing as duplicate of #62529 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-codegen
Area: Code generation
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Cargo.toml
Meta
rustc --version --verbose
:Additionally, I have the following
.cargo/config.toml
Error output
Backtrace
The text was updated successfully, but these errors were encountered: