-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-negativeIssue: The lint should have been triggered on code, but wasn'tIssue: The lint should have been triggered on code, but wasn'tT-macrosType: Issues with macros and macro expansionType: Issues with macros and macro expansion
Description
#!/bin/sh
cargo new repro
echo >repro/src/lib.rs '
#[allow(dead_code)]
fn f() {
let _x = 3.14;
}
'
echo >>repro/Cargo.toml '
[lib]
proc-macro = true
'
cargo clippy --manifest-path=repro/Cargo.toml
The same script without proc-macro = true
does catch the approx_constant
lint.
imp, JelteF and mcarton
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-negativeIssue: The lint should have been triggered on code, but wasn'tIssue: The lint should have been triggered on code, but wasn'tT-macrosType: Issues with macros and macro expansionType: Issues with macros and macro expansion