-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ICE with clippy::undocumented_unsafe_blocks
#7934
Comments
MCVE for the same issue (add comment to #7868): main.rs #![warn(clippy::undocumented_unsafe_blocks)]
mod zero;
fn main() {} zero.rs: fn zero() {
// SAFETY:
unsafe { 0 };
} |
@rustbot claim |
I went to try out I'm mentioning this in case anyone else met the problem and is looking for information, and in a small hope of prompting a backport so it can be used (though from this it sounds like only fixes for regressions are backported?) |
Yep, just hit this one as well after updating to 1.58.0 stable 😞 |
Code
I couldn't figure out how to reduce this (simple examples pass), but this occurs when running clippy on Portable SIMD (https://github.com/rust-lang/portable-simd, check out the
feature/safety
branch) after enabling this lint. I'm pretty sure it has something to do with macros.Meta
Rust version (
rustc -Vv
):Clippy version from master:
clippy 0.1.58 (84a4ab7f3 2021-11-04)
Error output
Backtrace
The text was updated successfully, but these errors were encountered: