"rust-analyzer.lens.enable": false,
"rust-analyzer.cachePriming.enable": false,
"rust-analyzer.cargo.buildScripts.useRustcWrapper": false, // https://github.com/rust-lang/rust-analyzer/issues/14722
"rust-analyzer.diagnostics.disabled": [
"unlinked-file",
],
{
"rust-analyzer.rustc.source": "discover",
"rust-analyzer.linkedProjects": [
"Cargo.toml",
"cargo-miri/Cargo.toml",
"miri-script/Cargo.toml",
],
"rust-analyzer.check.invocationStrategy": "once",
"rust-analyzer.check.overrideCommand": [
"./miri",
"clippy",
"--all-features",
"--message-format=json",
],
"rust-analyzer.cargo.features": "all",
"rust-analyzer.cargo.extraEnv": {
"MIRI_AUTO_OPS": "no",
"MIRI_IN_RA": "1",
},
// Contrary to what the name suggests, this also affects proc macros.
"rust-analyzer.cargo.buildScripts.invocationStrategy": "once",
"rust-analyzer.cargo.buildScripts.overrideCommand": [
"./miri",
"check",
"--all-features",
"-Zunstable-options",
"--compile-time-deps",
"--message-format=json",
],
}
As mentioned here and confirmed by @Veykril, something is preventing any RA diagnostic from showing up in Miri. I'd expect a bunch of errors due to #13504, but also if I introduce an error artificially (like a trivially wrong argument), I don't get any diagnostics.
User settings:
Project settings: