-
-
Notifications
You must be signed in to change notification settings - Fork 16.8k
Make unnameable tests an error #52917
Copy link
Copy link
Closed
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.
Description
Activity
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.
Right now the compiler will simply allow tests that cannot be run. The following will compile but will not run any tests.
This constitutes a silent failure and should probably be a hard error (or at least a warning). There's a lint for it:
UnnameableTestFunctionsbut it isn't run by default.