Skip to content

Lint against #[cfg(linux)] → #[cfg(unix)] #3949

Closed
@oberien

Description

@oberien

There have been several instances where I wrote #[cfg(linux)] to feature-gate something to linux. This is wrong and will never be evaluated to true. Instead #[cfg(unix)] must be used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsL-correctnessLint: Belongs in the correctness lint group

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions