Incorrect "function is never used" for function only used in a const assertion #130213
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.
Uh oh!
There was an error while loading. Please reload this page.
Code
Current output
Desired output
Rationale and extra context
The function is used in a const assertion -- that can have a side-effect so it should be considered a "use".
Other cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: