-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Currently, any code which is not reachable is considered dead and warned about, even if there are references to it from other dead code. Thus if I implement a tree of functions/methods which call each other, but haven't yet implemented any code to actually call into it yet, every single function in the family will produce a dead code warning, not only the root functions that actually lack any textual references. This is annoyingly verbose.
As a comparison, Clang and GCC only produce warnings for the roots in the equivalent situation for C code.
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.