add an off-by-default lint for catching constant statics #18312
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
I-slow
Issue: Problems and improvements with respect to performance of generated code.
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).The text was updated successfully, but these errors were encountered: