diff options
| author | bors <bors@rust-lang.org> | 2023-08-31 23:48:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-08-31 23:48:23 +0000 |
| commit | 79c684dde06bc4592d5af9a4c29d12ac16b932fc (patch) | |
| tree | 3c52654a66c2df8e5359479b9bfe036880bd9ec9 /tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | 77e395e87c7e40d3c7b736b900dff2f8218a1485 (diff) | |
| parent | 790922c5d6de7ed8e8f6f53a04e8afc005ac3bd4 (diff) | |
| download | rust-79c684dde06bc4592d5af9a4c29d12ac16b932fc.tar.gz rust-79c684dde06bc4592d5af9a4c29d12ac16b932fc.zip | |
Auto merge of #10692 - y21:missing-asserts, r=Alexendoo
new lint: `missing_asserts_for_indexing` Fixes #8296 This lint looks for repeated slice indexing and suggests adding an `assert!` beforehand that helps LLVM elide bounds checks. The lint documentation has an example. I'm not really sure what category this should be in. It seems like a nice lint for the `perf` category but I suspect this has a pretty high FP rate, so it might have to be a pedantic lint or something. I'm also not sure about the name. If someone knows a better name for this lint, I'd be fine with changing it. changelog: new lint [`missing_asserts_for_indexing`]
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
