Skip to content

Extend invalid_atomic_ordering lint to memory fence calls #5026

Closed
@krishna-veerareddy

Description

@krishna-veerareddy

core::sync::atomic::{fence, compiler_fence} functions will panic when called with Relaxed ordering so we should lint such calls under the invalid_atomic_ordering lint. I can start working on this issue if nobody has any objections.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesL-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