Closed
Description
To reproduce, first locally build a rustc (./x.py build compiler --stage 2
), then check out Miri, configure it for RA as shown below, and open it in vscode. Now open the src/lib.rs
file. There are errors for extern crate rustc_middle;
and all the other rustc crate imports: "unresolved extern crate".
A ./miri check
works fine, so the crates do exist, but RA somehow fails to find them.
rust-analyzer version: rust-analyzer version: 0.3.1148-standalone (2b472f6 2022-07-31)
rustc version: locally built rustc master
relevant settings:
// Place your settings in this file to overwrite default and user settings.
{
"rust-analyzer.rustc.source": "discover",
"rust-analyzer.linkedProjects": [
"./Cargo.toml",
"./cargo-miri/Cargo.toml"
],
"rust-analyzer.checkOnSave.overrideCommand": [
"./miri",
"check",
"--message-format=json"
],
"rust-analyzer.buildScripts.overrideCommand": [
"./miri",
"check",
"--message-format=json",
],
"rust-analyzer.rustfmt.extraArgs": [
"+nightly"
],
}
Metadata
Metadata
Assignees
Labels
No labels