-
Notifications
You must be signed in to change notification settings - Fork 2k
Standard macros reported as missing-unsafe #10022
Copy link
Copy link
Closed
Labels
A-diagnosticsdiagnostics / error reportingdiagnostics / error reportingBroken WindowBugs / technical debt to be addressed immediatelyBugs / technical debt to be addressed immediatelyS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
Metadata
Metadata
Assignees
Labels
A-diagnosticsdiagnostics / error reportingdiagnostics / error reportingBroken WindowBugs / technical debt to be addressed immediatelyBugs / technical debt to be addressed immediatelyS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
Type
Fields
Give feedbackNo fields configured for issues without a type.
Hi there,
I'm using rust-analyzer (
rust-analyzer 996300f4a 2021-08-23 dev) installed with the arch linuxrust-analyzerpackage in Sublime Text 4 with the LSP package and an up to date nightly rust compiler (rustc 1.56.0-nightly (b03ccace5 2021-08-24)). Today, rust-analyzer started reportingthis operation is unsafe and requires an unsafe function or blockon thedbg!,eprintln!andprintln!(list probably not exhaustive) macros. Minimal example:I tried downgrading the arch package to last weeks rust-analyzer but that didn't change anything. But apparently, this has something to do with todays nightly because when using
rustc 1.56.0-nightly (af140757b 2021-08-22)the issue disappears. However, runningcargo checkreports no issues.I'm not quite sure if this is the right place to report this issue, but since
cargo checkworks fine regardless of the compiler version I thought, I'd best start here. I'd be happy to provide additional information if necessary. Is there a way I can make rust-analyzer report the errors on the command line so I can exclude my editor as a potential error source?