-
-
Notifications
You must be signed in to change notification settings - Fork 17.6k
The unconditional_recursion lint can trigger in divergent functions #54444
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.C-bugCategory: This is a bug.Category: This is a bug.T-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.
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.C-bugCategory: This is a bug.Category: This is a bug.T-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.
@eddyb noticed these cases:
Try It
Try It
@eddyb thinks the way to resolve this is to reimplement the lint on top of the
dataflowanalysis stuff.https://discordapp.com/channels/442252698964721669/443151243398086667/492702651759329280