We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
uninit_assumed_init lint (see #4272) correctly recognizes the following anti-pattern:
uninit_assumed_init
unsafe { let mut x = MaybeUninit::<&i32>::uninit().assume_init(); }
However, it does not recognize a slightly altered version of it:
let mut x = MaybeUninit::<&i32>::uninit(); let x = unsafe { x.assume_init() };
Clippy version: clippy 0.0.212 (c8e3cfb 2019-10-28)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
uninit_assumed_init
lint (see #4272) correctly recognizes the following anti-pattern:However, it does not recognize a slightly altered version of it:
Clippy version: clippy 0.0.212 (c8e3cfb 2019-10-28)
The text was updated successfully, but these errors were encountered: