clippy::missing_panics_doc
still triggering even with expect
or allow
on individual unwraps
#14534
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
I have some public functions in a public struct which make use of checked, infallible
.unwrap()
s, which clippy correctly warned about missing# Panics
docs, but when adding#[expect(clippy::missing_panics_doc)]
above the.unwrap()
line, as suggested in the website, it still complained about missing# Panics
section on the same line and additionally about aunfulfilled
expect
.Playground link
In case the website changes, here is what i reference:
Lint Name
clippy::missing_panics_doc
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
No warnings anymore.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: