Skip to content

As of nightly 2021-08-25, most macros cause missing-unsafe errors #10047

Closed
@AaronKutch

Description

@AaronKutch

Since some recent nightly (In the past week or two since I've updated), rust-analyzer is almost unusable for me on large codebases because of the number of errors produced.

A program as simple as this one:

fn main() {
    dbg!("hello?");
}

produces "this operation is unsafe and requires an unsafe function or block"

edit: actually, I don't know if my rust-analyzer is nightly, but I know it was updated just today

Metadata

Metadata

Assignees

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