You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rust generic type parameters become references edges to phantom R, T and F nodes #5677
On v8 at d249de36 (0.9.124), the Rust extractor treats generic type parameters as referenced types. R in fn spawn<R: Runtime>(..) -> App<R> produces a references edge, and so do parameters in fields, enum payloads, supertrait bounds and impl trait refs. The target is a sourceless stub for each name, or any real node with the same label. That can be the node of a blanket impl<T> Trait for T, or a real struct R in another file.
On tauri this adds 1268 references edges and 321 phantom nodes. 49 of those edges land on real blanket impl nodes, such as RunEvent -> T. The Go, Kotlin, Swift, Scala and C++ extractors already skip type parameters since #4383, #4402, #4403, #4404 and #4405.
Activity
github-actions commentedon Dec 1, 2026
Thanks for opening this issue, @Max17190. A maintainer will take a look soon.
If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.
To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.
test(rust): count raw type references so a leaked generic cannot hide