Skip to content
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

Improve "Go to Definition" for code included with include! (e.g. bindgen bindings) #11851

Closed
jschwe opened this issue Mar 30, 2022 · 1 comment

Comments

@jschwe
Copy link

jschwe commented Mar 30, 2022

Currently "Go to definition" on a symbol / function generated by bindgen brings you to the include!(...) macro, where the bindings were included. I think it would be a great addition if rust-analyzer could also support directly opening the bindings rust file and showing the symbol there.
Typically the bindings.rs file would be in OUT_DIR, e.g. for include!(concat!(env!("OUT_DIR"), "/bindings.rs")), but since rust_analyzer already seems to be parsing the bindings.rs file to some extent, maybe this is simple to implement?

@flodiebold
Copy link
Member

Duplicate of #3767.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants