rust-analyzer icon indicating copy to clipboard operation
rust-analyzer copied to clipboard

Analysis gets stuck at `render_phase::draw::draw` in `bevy`

Open lnicola opened this issue 3 years ago • 2 comments

or at least it doesn't finish in 11 minutes.

Tested at ea13f0bddf22f7a5739a8efc775b014d6f008ac7.

lnicola avatar Jul 01 '22 11:07 lnicola

Minimized:

trait SystemParam {
    type Fetch: SystemParamFetch;
}

trait SystemParamFetch {
    type Item: SystemParam<Fetch = Self>;
}

fn foo<P: SystemParam>()
where
    P::Fetch: Clone,
{
    bar();
}

fn bar<P: SystemParam>()
where
    P::Fetch: Clone,
{
}

(for reference, foo was originally Draw::draw and bar was SystemState::get)

detrumi avatar Aug 10 '22 21:08 detrumi

Turns out to be another instance of #12897

detrumi avatar Aug 11 '22 11:08 detrumi

No longer hangs

Veykril avatar Jan 30 '23 11:01 Veykril