Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set
package.metadata.rust-analyzer.rustc_private=true
in Cargo.toml
By setting this value in the Cargo.toml rust-analyzer understands that rustfmt uses compiler-internals using `extern crate`. This is a universal step that all developers will need to take in order to get better type hints and code completion suggestions for compiler-internals in their editor. **Note**: users will also need to install the `rustc-dev` component via `rustup` and add the following to their rust-analyzer configuration: ```json { "rust-analyzer.rustcSource": "discover", "rust-analyzer.updates.channel": "nightly" } ```
- Loading branch information