Dead code lint emits unused code warning for code that is clearly used. #39034
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
L-dead_code
Lint: dead_code
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
It looks like the dead code lint is too eager, and doesn't consider two signs that the variants are used:
Playground
Expected: A clean build (I think.)
What I got:
The text was updated successfully, but these errors were encountered: