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

Fix missing unsafe block for the nightly change #10032

Merged
merged 1 commit into from
Aug 26, 2021

Conversation

oxalica
Copy link
Contributor

@oxalica oxalica commented Aug 26, 2021

Fix #10022

Tested via vscode extension.

@lnicola
Copy link
Member

lnicola commented Aug 26, 2021

Needs a test baseline update (run env UPDATE_EXPECT=1 cargo test, then commit the changes).

@oxalica oxalica force-pushed the fix/format_args_missing_unsafe branch from 90d1885 to 15eccf2 Compare August 26, 2021 09:29
std::fmt::Arguments::new_v1(&[], &[##arg_tts])
// It's unsafe since https://github.com/rust-lang/rust/pull/83302
// Wrap an unsafe block to avoid false-positive `missing-unsafe` lint.
// FIXME: Currently we don't have `unused_unsafe` lint so an extra unsafe block won't cause issues on early
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fine, we don't go out of our way to support older Rust versions.

@lnicola
Copy link
Member

lnicola commented Aug 26, 2021

bors r+

@bors
Copy link
Contributor

bors bot commented Aug 26, 2021

@bors bors bot merged commit 55d4813 into rust-lang:master Aug 26, 2021
@oxalica oxalica deleted the fix/format_args_missing_unsafe branch August 26, 2021 09:45
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.

Standard macros reported as missing-unsafe
2 participants