Skip to content

Lint wrong usage of known attributes - spotlight: no_std #3782

Closed
@Robbepop

Description

@Robbepop

When compiling a no_std crate it already happened multiple times that I forgot the ! after the # in #![no_std] (or similar) attribute specifiers making it a useless #[no_std] causing compilation troubles because I accidentally pulled std due to this. The compiler doesn't warn for misusage of known attributes like no_std and I am not sure if it should. But it would be awesome to have a clippy lint for this situation! Would have saved me hours of debugging already - ashamed.

Metadata

Metadata

Assignees

No one assigned

    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