Skip to content

Missing diagnostic in sub-crate if target is wasm32-unknown-unknown #20859

@bug-brain

Description

@bug-brain

When I set the target to wasm32-unknown-unknown most if not all diagnostics do not show up in sub-crates.

rust-analyzer version: rust-analyzer version: 0.3.2593-standalone (6b2e677 2025-08-25)

rustc version: rustc 1.90.0 (1159e78c4 2025-09-14)

editor or extension: VSCode 1.105.1

relevant settings: "rust-analyzer.cargo.target": "wasm32-unknown-unknown"

repository link: https://github.com/bug-brain/rust-analyzer-wasm

code snippet to reproduce:

async fn foo() {
    bar(); // no message
    let n = 0;
    n.await; // no message
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions