Closed r4ntix closed 8 months ago
It is a RA bug (rust-lang/rust-analyzer#14839). You can check it by "Show Call Hierarchy", and switch to show outgoing calls.
Update from the future: https://github.com/rust-lang/rust-analyzer/issues/14839 seems to have been fixed and closed.
Hopefully that means that the next weekly release of Rust Analyzer will include a fix :)
@chanhx I've updated to the newest Rust analyzer version and can still reproduce this issue with https://github.com/bevyengine/naga_oil .
But it doesn't happen with all functions. It does happen with this one, and many others. https://github.com/bevyengine/naga_oil/blob/37a472c9dadde7f90504c24d0e3680821d54380a/src/compose/mod.rs#L277
Is that enough for you to reproduce and investigate it, or should I prepare a minimal sample and write up a proper bug report?
The bug still exists in the newest version (v0.4.1951).
Did you see an error notification sourced from RA?
Or you can right-click a function to display the context menu and select "Show Call Hierarchy", and then switch to show outgoing calls to confirm that.
there is a panic while generating a call graph: