Skip to content

add an off-by-default lint for catching constant statics #18312

@thestinger

Description

@thestinger

Crates not concerned about providing a stable ABI for global variables should be able to opt-in to a lint to deny constant statics. This would catch regressions due to the removal of inlining and insignificant addresses for constant static variables (#18311).

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-slowIssue: Problems and improvements with respect to performance of generated code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions