]> git.lizzy.rs Git - rust.git/commit
Removing lint for constant `usize` array indexing
authorShea Newton <shnewto@gmail.com>
Tue, 19 Jun 2018 21:30:43 +0000 (21:30 +0000)
committerShea Newton <shnewto@gmail.com>
Tue, 19 Jun 2018 21:30:43 +0000 (21:30 +0000)
commitc479b3bc2856a2c2362cd17b95e28caaaffe0908
treea8121565b5a970257c6016642403c2d833c93c6f
parente63f5dfedbb004afc6e9ca303b12f1c8f8cbea0d
Removing lint for constant `usize` array indexing

This commit removes the logic in this PR that linted out-of-bounds constant `usize` indexing on arrays. That case is already handled by rustc's `const_err` lint. Beyond removing the linting logic, the test file and its associated stderr were updated to verify that const `usize` indexing operations on arrays are no longer handled by this `indexing_slicing` lint.
clippy_lints/src/indexing_slicing.rs
tests/ui/indexing_slicing.rs
tests/ui/indexing_slicing.stderr