unfulfilled_lint_expectations in combination with proc macro [wasm_bingen]
#14008
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
clippy throws false positives when using a proc macro (I only tested with
[wasm_bindgen]
.I further observed the following:
#[wasm_bindgen]
removes the false positive#[expect(...)]
correctly throws warnings#[expect(...)]
with#[allow(...)]
correctly removes the warnings.I'm not 100% sure whether it is a problem of clippy or wasm-bindgen. Please tell me if the latter should be the case.
Lint Name
unfulfilled_lint_expectations
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen: Clippy throws no warnings.
When I remove the
expect
macros, Clippy correctly throws the warnings.Version
(see playground)
Additional Labels
No response
The text was updated successfully, but these errors were encountered: