Use rust analyzer in librustdoc?

Hi, I'm using librustdoc to implement a tool, but it's dependencies is below:

and, in librustdoc/,

rust analyzer can't resovle crates relative to rustc.These crates can't be added to dependencies because of spuriously rebuild crates.
What can I do to make rust analyzer resolve rustc crates? Thanks.

There's instructions for configuring rust-analyzer to work with rustc in rustc-dev-guide:

1 Like

It works. Thank you so much

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.