Skip to content

Commit a116b9b

Browse files
committed
Lint unnecessary safety comments on items
1 parent 1a96571 commit a116b9b

File tree

5 files changed

+200
-59
lines changed

5 files changed

+200
-59
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4451,6 +4451,7 @@ Released 2018-09-13
44514451
[`unnecessary_mut_passed`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
44524452
[`unnecessary_operation`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_operation
44534453
[`unnecessary_owned_empty_strings`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_owned_empty_strings
4454+
[`unnecessary_safety_comment`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_safety_comment
44544455
[`unnecessary_safety_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_safety_doc
44554456
[`unnecessary_self_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_self_imports
44564457
[`unnecessary_sort_by`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by

clippy_lints/src/declared_lints.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[
584584
crate::types::TYPE_COMPLEXITY_INFO,
585585
crate::types::VEC_BOX_INFO,
586586
crate::undocumented_unsafe_blocks::UNDOCUMENTED_UNSAFE_BLOCKS_INFO,
587+
crate::undocumented_unsafe_blocks::UNNECESSARY_SAFETY_COMMENT_INFO,
587588
crate::unicode::INVISIBLE_CHARACTERS_INFO,
588589
crate::unicode::NON_ASCII_LITERAL_INFO,
589590
crate::unicode::UNICODE_NOT_NFC_INFO,

0 commit comments

Comments
 (0)