rust/clippy_lints/src/loops
Skyler Calaman c52b389b16 Fix readability suggestions.
1. Make the lifetime contained in LateContext `'tcx`.
2. Fix `'txc` to `'tcx` because it was a typo.
3. Refactor `IterFunctionVisitor`'s `visit_block` method to be more readable.
4. Replace uses of `rustc_middle::ty::TyKind` with `rustc::middle::ty`, and remove the `#[allow(...)]`.

(Thank you llogiq for all these suggestions!)
2021-11-16 11:29:26 -05:00
..
empty_loop.rs
explicit_counter_loop.rs Fix explicit_counter_loop suggestion for non-usize types 2021-11-08 22:21:05 -05:00
explicit_into_iter_loop.rs
explicit_iter_loop.rs
for_kv_map.rs
for_loops_over_fallibles.rs
iter_next_loop.rs
manual_flatten.rs
manual_memcpy.rs Fix explicit_counter_loop suggestion for non-usize types 2021-11-08 22:21:05 -05:00
mod.rs Added clippy::version attribute to all normal lints 2021-11-10 19:48:31 +01:00
mut_range_bound.rs
needless_collect.rs Fix readability suggestions. 2021-11-16 11:29:26 -05:00
needless_range_loop.rs
never_loop.rs
same_item_push.rs
single_element_loop.rs
utils.rs Fix explicit_counter_loop suggestion for non-usize types 2021-11-08 22:21:05 -05:00
while_immutable_condition.rs
while_let_loop.rs
while_let_on_iterator.rs