about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-01 19:02:59 +0000
committerbors <bors@rust-lang.org>2023-12-01 19:02:59 +0000
commitee8376075d8fcfa0bacc316e0417981cd458044c (patch)
tree6bded40173f127c15fd8c97d525eaa2bb0388012 /compiler/rustc_codegen_llvm/src/errors.rs
parent5ac76ac54f5616f8d49c2faea81c6b734a316bce (diff)
parent4de845e375c7679b919f624227a8004476e2c153 (diff)
downloadrust-ee8376075d8fcfa0bacc316e0417981cd458044c.tar.gz
rust-ee8376075d8fcfa0bacc316e0417981cd458044c.zip
Auto merge of #11837 - y21:issue11835, r=dswij
[`missing_asserts_for_indexing`]: accept length equality checks

Fixes #11835

The lint now allows indexing with indices 0 and 1 when an `assert!(x.len() == 2);` is found.
(Also fixed a typo in the doc example)

changelog: [`missing_asserts_for_indexing`]: accept len equality checks as a valid assertion
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions