Skip to content

Add an allow-by-default lint against #[no_mangle] #72188

Closed
@Nemo157

Description

@Nemo157

Given that #[no_mangle] is unsafe there should be a lint that is capable of detecting it (there was a suggestion that unsafe_code should also detect it, but it might make sense to be able to lint it individually too).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-enhancementCategory: An issue proposing an enhancement or a PR with one.I-unsoundIssue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/SoundnessT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions