]> git.lizzy.rs Git - rust.git/commit
Auto merge of #3789 - bzzzzzz:needless_range_loop_bugfix, r=oli-obk
authorbors <bors@rust-lang.org>
Thu, 21 Feb 2019 09:36:13 +0000 (09:36 +0000)
committerbors <bors@rust-lang.org>
Thu, 21 Feb 2019 09:36:13 +0000 (09:36 +0000)
commita5c16e58924249bdb6f6f530345dd08495c09dfc
tree554e87b6d22ecd02058141fe7310244287000bc0
parent027dde92e22b9058c2bd6efa4b3e47b78d991dc7
parent7767b3a08172abaabd8e047a8468b7c8e934cd4f
Auto merge of #3789 - bzzzzzz:needless_range_loop_bugfix, r=oli-obk

Make needless_range_loop not applicable to structures without iter method

Fixes https://github.com/rust-lang/rust-clippy/issues/3788

Now we will start lint indexed structure only if it has known iter or iter_mut method implemented.
clippy_lints/src/methods/mod.rs