Skip to content

#[target_feature="±<feat>"] is not properly checked against whitelist #38900

Closed
@nagisa

Description

@nagisa

#[cfg(target_feature="abcd")] was landed with a strong requirement to have a whitelist of LLVM features that are exposed this way, mostly due to compatibility concerns with LLVM.

#[target_feature="±abcd"], however does not check against the whitelist in question and allows everything through. Seems like a potential compat footgun?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-SIMDArea: SIMD (Single Instruction Multiple Data)C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-libs-apiRelevant to the library API 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