-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
unnameable_test_items does not detect tests in inner modules #131364
Copy link
Copy link
Open
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.Category: This is a bug.L-unnameable_test_itemsLint: unnameable_test_itemsLint: unnameable_test_itemsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.Category: This is a bug.L-unnameable_test_itemsLint: unnameable_test_itemsLint: unnameable_test_itemsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Code
Current output
Desired output
Rationale and extra context
The desired warning is produced if
mod testsis removed so that theinner_test()is directly in the function. The warning should be produced in both cases, since both cases are tests that will not be run.The warning was last changed in #114414.
Rust Version
Stable 1.81.0 and nightly 1.83.0-nightly (2024-10-05 9096f4f)