unnecessary_safety_comment
does not lint for a doc(hidden)
item
#14555
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Uh oh!
There was an error while loading. Please reload this page.
Summary
unnecessary_safety_comment
does not lint for adoc(hidden)
item (if above it).Possibly related: #14553.
Possibly related: #14554.
Possibly related: #14556.
Lint Name
unnecessary_safety_comment
Reproducer
https://godbolt.org/z/Wxde5d7f4
I tried this code:
I expected to see this happen: Three lints, for all safety comments.
Instead, this happened: The safety comment for
y
is not linted.Version
The text was updated successfully, but these errors were encountered: