about summary refs log tree commit diff
path: root/src/rustllvm/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2020-04-15 20:12:28 +0200
committerGitHub <noreply@github.com>2020-04-15 20:12:28 +0200
commitceea3c6a35bfada9536bac674fc6308831f1938c (patch)
tree3cd7f96d7ccd26f7a05f9daf70d2eecd1350d02a /src/rustllvm/CoverageMappingWrapper.cpp
parent3481bf4102424d648a3f9efa74558ed17d492d55 (diff)
parent629cc4ada3666865eb90f8425d7ea657710cdc74 (diff)
downloadrust-ceea3c6a35bfada9536bac674fc6308831f1938c.tar.gz
rust-ceea3c6a35bfada9536bac674fc6308831f1938c.zip
Rollup merge of #5248 - ThibsG:ConstValues, r=flip1995
Add lint on large non scalar const

This PR adds the new lint `non_scalar_const` that aims to warn against `const` declaration of large arrays. For performance, because of inlining, large arrays should be preferably declared as `static`.

Note: i made this one to warn on all const arrays, whether they are in a body function or not. I don't know if this is really necessary, i could just reduce this lint to variables out of function scope.

Fixes: #400

changelog: add new lint for large non-scalar types declared as const
Diffstat (limited to 'src/rustllvm/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions