Skip to content

clippy::missing_safety_doc triggers on macro generated code #4949

@Nemo157

Description

@Nemo157

See rust-embedded/cortex-m-rt#225, the #[interrupt] and #[entry] proc-macros from cortex-m-rt generate pub unsafe fn without safety documentation, which triggers the missing_safety_doc lint. @jonas-schievink suggests that since these are generated by external macros the lint shouldn't be triggering on them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingT-macrosType: Issues with macros and macro expansion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions