-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Compiler panicked at 'assertion failed: !value.has_escaping_bound_vars()' #91603
Comments
Thanks for the code. Would be great if someone could take a stab at minimizing it. @rustbot label +E-needs-mcve I may come back and attempt to myself |
I've managed to get it to this point. use bevy::ecs::query::QueryItem;
fn main() {}
fn first_child() -> impl FnOnce(&u32) -> Result<QueryItem<u32>, u32> {} |
Here's a version with the bevy calls minimized as well pub trait WorldQuery {
type Fetch: for<'world> Fetch<'world>;
}
fn main() {}
pub trait Fetch<'world> {
type Item;
}
pub type QueryItem<'w, Q> = <<Q as WorldQuery>::Fetch as Fetch<'w>>::Item;
fn first_child() -> impl FnOnce(&u32) -> QueryItem<u32> {} |
@Patrick-Poitras epic! @rustbot label -E-needs-mcve @rustbot glacier "https://gist.github.com/rust-play/e8b5a9417bc791f1c1ec11f58279fab3" |
Error: Parsing glacier command in comment failed: ...'cier https' | error: invalid link - must be from a playground gist at >| '://gist.gi'... Please let |
Error: Parsing glacier command in comment failed: ...' glacier :' | error: no link provided - did you forget the quotes around it? at >| '//gist.git'... Please let |
Oh, can the glacier command only be used by repository members? 😕 |
…oli-obk Do not register infer var for GAT projection in RPIT Fixes rust-lang#93340 Fixes rust-lang#91603 r? `@oli-obk`
…oli-obk Do not register infer var for GAT projection in RPIT Fixes rust-lang#93340 Fixes rust-lang#91603 r? ``@oli-obk``
Code
I was experimenting with Bevy, and suddenly found
rust-analyzer
has stopped me to show errors. It turned out thatrustc
paniced on this function:I added a commit with exact state of my project (it's pretty small ATM) where the compiler pianics gentoid/planetary-simulator-rs@720373d
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: