about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorYacin Tmimi <yacintmimi@gmail.com>2022-06-16 08:51:19 -0400
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2022-06-17 19:34:24 -0500
commit3de1a095e0ed52ade1b88d165d44d80455d3e6c5 (patch)
tree555df7c79d7d6f56643ca7aa22d398472cc7da6b /compiler/rustc_mir_transform/src/coverage/debug.rs
parent33c60740d3e1387a5979cac93785e605de8470e0 (diff)
downloadrust-3de1a095e0ed52ade1b88d165d44d80455d3e6c5.tar.gz
rust-3de1a095e0ed52ade1b88d165d44d80455d3e6c5.zip
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"
}
```
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions