Skip to content

No RA diagnostics in Miri or other rustc_private-using projects #21869

@RalfJung

Description

@RalfJung

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:

    "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",
    ],

Project settings:

{
    "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",
    ],
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsdiagnostics / error reportingC-bugCategory: bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions