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

Support jump to the definition of auto-generated source? #13736

Closed
jmjoy opened this issue Dec 7, 2022 · 1 comment
Closed

Support jump to the definition of auto-generated source? #13736

jmjoy opened this issue Dec 7, 2022 · 1 comment

Comments

@jmjoy
Copy link

jmjoy commented Dec 7, 2022

Sometime we use build.rs to generate rust source, like bindgen, and then include the source by macro include.

For example:

include!(concat!(env!("OUT_DIR"), "/binding.rs"));

Imagine there is a function defined in binding.rs, and use in another mod, then operate the go to the definition.

Rust-analyzer will jump to the line include!(concat!(env!("OUT_DIR"), "/binding.rs"));,

Clion with rust plugin will jump to real line in binding.rs.

I think is better to act like Clion, is more convenient.

@jonas-schievink
Copy link
Contributor

Duplicate of #3767

@jonas-schievink jonas-schievink marked this as a duplicate of #3767 Dec 7, 2022
@flodiebold flodiebold closed this as not planned Won't fix, can't repro, duplicate, stale Dec 7, 2022
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

3 participants