Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RA flags many safe macro invocations as unsafe #10072

Closed
spencerkohan opened this issue Aug 29, 2021 · 2 comments
Closed

RA flags many safe macro invocations as unsafe #10072

spencerkohan opened this issue Aug 29, 2021 · 2 comments

Comments

@spencerkohan
Copy link

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.

@bjorn3
Copy link
Member

bjorn3 commented Aug 29, 2021

Probably a duplicate of #10022. The next stable version will include the fix. Stable is released on Monday, so you can either switch to nightly which already includes the fix or wait ~24h.

@spencerkohan
Copy link
Author

Seems to be working on nightly, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants