False positive missing_const_for_fn
if there are #[start]
and #[test]
both are present
#13946
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
False positive
missing_const_for_fn
if there are#[start]
and#[test]
both are present since the checkis_entrypoint_fn
doesn't filter for triggering on entrypoint in this caserust-clippy/clippy_lints/src/missing_const_for_fn.rs
Line 104 in ad69c65
Reproducer
I tried this code:
https://github.com/rust-lang/rust-clippy/pull/13945/files#diff-2848b9a3191892d7b27e3403ff872cfc21bdcace40abf2f47a90dfd210449f23
I expected to see this happen:
No trigger
missing_const_for_fn
for entrypointInstead, this happened:
Triggered
missing_const_for_fn
for entrypointVersion
Additional Labels
@rustbot label +I-false-positive
The text was updated successfully, but these errors were encountered: