missing_panics_doc
with check-private-items
should not trigger on tests
#12265
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
When the
missing_panics_doc
lint is set to "warn" or "deny" andclippy.toml
contains "check-private-items = true
", then the lint will warn/deny aboutassert!()
,unwrap()
, etc. in#[test]
functions that lack "Panics" docs, even though there is no need for test functions to have "Panics" docs.Lint Name
missing_panics_doc
Reproducer
I tried this code:
with this
[lints]
block inCargo.toml
:and this
clippy.toml
:I saw this happen:
I expected to see this happen: [no lints]
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: