Skip to content

Warnings and errors not showing for no_std targets with allTargets = false #11982

Open
@jkelleyrtp

Description

@jkelleyrtp

rust-analyzer version: rust-analyzer version: faaec86ff 2022-04-12 nightly

rustc version: rustc 1.60.0 (7737e0b5c 2022-04-04)

An embedded project of mine has run into a regression with RA in the most recent version that breaks all warning and error reporting.

To get the "no crate found for test" error disabled, I added a .vscode/settings.json with the following item:

{
    "rust-analyzer.checkOnSave.allTargets": false,
}

However, once I've enabled this feature, error and warning reporting completely stops for the entire project.

If I enable all targets, the examples start to report warnings but the lib.rs throws an error about "no crate found for test".

My project is configured with a .cargo/config.toml:

[build]
target = "thumbv7em-none-eabihf"

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-no_stdissues related to no_std handlingC-bugCategory: bugS-unactionableIssue requires feedback, design decisions or is blocked on other work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions