Clippy wants a Safety section for functions marked with target_feature
Rust Internals
Clippy wants a Safety section for functions marked with target_feature
When I run clippy on this: #[target_feature(enable = "avx")] pub fn f() {} I get a warning: warning: unsafe function's docs are missing a `# Safety` section --> src/lib.rs:2:1 | 2 | pub fn f() {} | ^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.99.0/index.html#missing_safety_doc = note: `#[warn(clippy::missing_safety_doc)]` on by default Given that calling target_feature functions are no longer unsafe and can be safely called fr...
0 comments
No comments yet.