arbitrary_source_item_ordering
ignores test modules
#14570
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
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
When using the
arbitrary_source_item_ordering
, there is a conflict with the warn-by-defaultitems_after_test_module
lint.When I add test modules, I want to put them at the end of the file, but
arbitrary_source_item_ordering
wants me to put my test module at the beginning of the file, which goes against the common practice and the warn-by-defaultitems_after_test_module
lint.I would expect
arbitrary_source_item_ordering
to have an exception to the rule for the test modules.Lint Name
arbitrary_source_item_ordering
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
nothing
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: