No location reported for module_name_repetitions
#3892
Labels
C-bug
Category: Clippy is not doing the correct thing
good-first-issue
These issues are a good way to get started with Clippy
Hi,
Clippy fails to give a location for
module_name_repetitions
in some cases. It looks like it's when an attribute matches the module name. Here's the steps to reproduce:Change the module inside
src/lib.rs
fromtests
totest
:Then run
cargo clippy --tests -- -D clippy::pedantic
, which outputs:Regards,
Simon
Versions:
clippy 0.0.212 (1b89724 2019-01-15)
cargo 1.33.0 (f099fe94b 2019-02-12)
The text was updated successfully, but these errors were encountered: