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

Remove unnecessary unsafe from format_args expansion #12719

Merged
merged 1 commit into from
Jul 8, 2022

Conversation

davidlattimore
Copy link
Contributor

No description provided.

@davidlattimore
Copy link
Contributor Author

Relevant history:

std::fmt::Arguments::new_v1 was marked unsafe only in 1.56, but was safe in prior and later releases. So this commit will reintroduce issue #10022 for anyone using exactly rust version 1.56. Question is... do you think it has been long enough yet? If anyone were stuck on 1.56, they could work around the issue by adding "missing-unsafe" to the list of disabled diagnostics in rust-analyzer's settings.

@lnicola
Copy link
Member

lnicola commented Jul 8, 2022

do you think it has been long enough yet?

Lol, we still have users on 1.42 (though proc macros don't work there).

But yeah, if this only applies to a single version, I'm not opposed to it.

@jonas-schievink
Copy link
Contributor

We support current stable only, users that need older Rust versions can use an older rust-analyzer.

@bors r+

@bors
Copy link
Collaborator

bors commented Jul 8, 2022

📌 Commit 6f819e3 has been approved by jonas-schievink

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Jul 8, 2022

⌛ Testing commit 6f819e3 with merge c419aa9...

@bors
Copy link
Collaborator

bors commented Jul 8, 2022

☀️ Test successful - checks-actions
Approved by: jonas-schievink
Pushing c419aa9 to master...

@str4d
Copy link

str4d commented Sep 16, 2022

So this commit will reintroduce issue #10022 for anyone using exactly rust version 1.56.

Aha, this explains why I've been seeing this again for the past few months. 1.56 is a very common MSRV for much of the cryptography ecosystem (for a few reasons, one of which is that it's the earliest Rust version supporting the 2021 edition), so many of the workspaces have overrides set to ensure compatibility. But following the steps in https://rust-analyzer.github.io/manual.html#toolchain were sufficient to remove the errors for me.

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

Successfully merging this pull request may close these issues.

5 participants