Remove "SAFETY:" tag on comments that are not related to unsafe
blocks
#6724
Labels
A-meta
Changes in the contributor workflow and planning
C-docs
An addition or correction to our documentation
D-good-first-issue
Nice and easy! A great choice to get started
Describe the feature
The
// SAFETY:
comment tag is used aboveunsafe
blocks andimpl
s to explain the need of its usage or why it's safe.This is not always the case in this code base, where it's also used above calls to
unwrap()
/expect("...")
explaining why it won't panic, and other places which are completely unrelated tounsafe
.These should be replaced with
NOTE:
or removed to make it just a normal comment.Additional context
clippy::undocumented_unsafe_blocks
clippy::missing_safety_doc
zerocopy::safety_comment!
The text was updated successfully, but these errors were encountered: