Skip to content

while cfg!(unix) { ... } suggests to use loop instead #43268

Closed
@oli-obk

Description

@oli-obk

If any linting or suggestion is done in this case, it should suggest if cfg!(unix) { loop { ... } }

cc @jseyfried this has been in rustc forever, but clippy is only lately going crazy on it. Could this have come from your PR, too?

Metadata

Metadata

Assignees

Labels

A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions