Skip to content

Never-looping loops #257

Closed
Closed
@llogiq

Description

@llogiq

This lint would warn on loops with unconditional breaks, because in that case, both loop and break; can be removed, leaving only a scope.

This would be either a remnant of some refactoring, code by one who doesn't know plain scope definitions or test cases for clippy lints. 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.T-ASTType: Requires working with the AST

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions