Add unnecessary_safety_doc lint by Veykril · Pull Request #9822 · rust-lang/rust-clippy (original) (raw)

bors added a commit that referenced this pull request

Nov 30, 2022

@bors

Move unnecessary_unsafety_doc to pedantic

This lint was added in #9822. I like the idea, but also agree with #9986 as well. I think it should at least not be warn-by-default. This is one of these cases, where I'd like a group between pedantic and restriction. But I believe that users using #![warn(clippy::pedantic)] will know how to enable the lint if they disagree with it.


Since the lint is new:

changelog: none

r? @flip1995 since I'd suggest back porting this, the original PR was merged 16 days ago.

Closes: #9986 (While it doesn't address everything, I believe that this is the best compromise)