add to that the package metadata for rust-analyzer,
How do you do this?
@Nelson J Morais could you make a pr upstreaming that change?
yes I'll make it as soon I get out of a work meeting.
@Nixon Enraght-Moony ill reply to you soon to help you out. can't right now.
@Nixon Enraght-Moony so regarding rust-analyzer
and code completion while hacking librustdoc
you can add the following to
Cargo.toml of librustdoc
rustc_private = true
after that you tell RA where your rust repo source code is with: (I'm using vscode here)
by setting the rustcSource of RA in your settings.json like this
point it to the Cargo.toml of the rust repo
and you should start to get code completion for most of the code in librustdoc.
take note that the rustc_private key of RA will work for all projects/libs, modules, etc that have the
#![feature(rustc_private)] in it.
I hope it help
for the record, i've opened PR to add
rustc_private = true to
Cargo.toml here https://github.com/rust-lang/rust/pull/83389
Last updated: Oct 11 2021 at 22:34 UTC