Skip to content

println! and tokio::main reported as unsafe functions #12751

@OverHash

Description

@OverHash

rust-analyzer is reporting basic macros like println! and #[tokio::main] as unsafe functions.
image
image

These issues have only recently appeared. Running cargo check shows that my workspace is fine.

rust-analyzer version: rust-analyzer version: 0.0.0 (5342f47 2022-07-09)

rustc version: rustc 1.62.0 (a8314ef7d 2022-06-27)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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