Skip to content

Add proc_macro crate sources to "rust-src" distribution #55279

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
vlad20012 opened this issue Oct 23, 2018 · 0 comments · Fixed by #55280
Closed

Add proc_macro crate sources to "rust-src" distribution #55279

vlad20012 opened this issue Oct 23, 2018 · 0 comments · Fixed by #55280

Comments

@vlad20012
Copy link
Member

In IntelliJ-Rust we use "rust-src" rustup component to acquire standard crates sources (which we use for all IDE intelligence). And there is not proc_macro crate in the standard "rust-src" distribution. It results to the fact that our IDE know nothing about proc_macro crate and can't provide any IDE features in code that uses it.
So it would be very nice to add "proc_macro" to "rust-src" rustup component distribution =)

Is it enough to just add it to this list?

let std_src_dirs = [

I see proc_macro has a several dependencies: "libsyntax", "libsyntax_pos", "librustc_errors", "librustc_data_structures". Is it ok to not add them to the list?

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

Successfully merging a pull request may close this issue.

1 participant