Skip to content

Internal utility for visiting all returns #13552

Open
@GnomedDev

Description

@GnomedDev

We should have a ReturnVisitor built on the intravisit::Visitor infra to visit all explicit ExprKind::Return and implicit (last expression in a block) returns.

This would significantly help with some lint ideas, and like #305 (came up in #13395) and #12290 to name a couple.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions