Skip to content

RA flags many safe macro invocations as unsafe #10072

Closed
@spencerkohan

Description

@spencerkohan

Since updating to the most recent version of rust-analyzer, I am getting many fals-positive missing-unsafe errors.

Basically every invocation of format!, eprintln! and write! macro results in a diagnostic complaining about a missing unsafe block.

When I run a cargo build, the diagnostics go away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions