false positive in collapsible-span-lint-calls #8798
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 encountered this issue while working on a pr to this project: #8769, by running
cargo test --features deny-warnings,internal
Lint Name
collapsible-span-lint-calls
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
No warning should have been printed, since I'm calling
.help
twice, and the code in the suggestion does not include the firsthelp
section.It happens only when I chain-call
.help
:And when I'm switching to:
This warning disappears
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: