]> git.lizzy.rs Git - rust.git/commit
Auto merge of #8588 - pitaj:fix-8348, r=flip1995
authorbors <bors@rust-lang.org>
Wed, 6 Apr 2022 08:13:26 +0000 (08:13 +0000)
committerbors <bors@rust-lang.org>
Wed, 6 Apr 2022 08:13:26 +0000 (08:13 +0000)
commit41f2eccf92c54337b727d891e42ba66105c56d0d
tree86becba30a8cd851e2dfec3a286ee016ce20cc70
parent9a095064062b3a832eea919efdc4761a697803b4
parent21eae8ceb6ff58b592b00cab58cda62a96aad51a
Auto merge of #8588 - pitaj:fix-8348, r=flip1995

`indexing_slicing` should not fire if a valid array index comes from a constant function that is evaluated at compile-time

fix #8348

changelog: [`indexing_slicing`] fewer false positives in `const` contexts and with `const` indices