Skip to content

Lint: empty_loop lint on no_std #3746

Closed
@therealprof

Description

@therealprof

In embedded (or no_std) scenarios it is very common to use empty loops in diverging functions such as the #[entry] function or panic handlers. Yet when using clippy we always have to work around the empty_loop lint. Is there a way to disable this lint for no_std applications where it does actually make sense to have it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsC-enhancementCategory: Enhancement of lints, like adding more cases or adding help messages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions