rust/clippy_lints/src/loops
bors 3d43826e32 Auto merge of #8305 - camsteffen:util-cleanup, r=flip1995
Factor out several utils, add `path_def_id`

changelog: none

This is generally an effort to reduce the total number of utils. `path_def_id` is added which I believe is more "cross-cutting" and also complements `path_to_local`. Best reviewed one commit at a time.

Added:
* `path_def_id`
* `path_res`

Removed:
 * `is_qpath_def_path`
 * `match_any_diagnostic_items`
 * `expr_path_res`
 * `single_segment_path`
 * `differing_macro_contexts`
 * `is_ty_param_lang_item`
 * `is_ty_param_diagnostic_item`
 * `get_qpath_generics`

Renamed:
* `path_to_res` to `def_path_res`
* `get_qpath_generic_tys` to `qpath_generic_tys`

CC `@Jarcho` since this relates to some of your work and you may have input.
2022-02-07 15:23:23 +00:00
..
empty_loop.rs Merge commit '97a5daa65908e59744e2bc625b14849352231c75' into clippyup 2022-01-13 13:18:19 +01:00
explicit_counter_loop.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
explicit_into_iter_loop.rs Merge commit '97a5daa65908e59744e2bc625b14849352231c75' into clippyup 2022-01-13 13:18:19 +01:00
explicit_iter_loop.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
for_kv_map.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
for_loops_over_fallibles.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
iter_next_loop.rs fix(clippy): update loop lints to use arg.span 2021-09-06 23:30:04 -07:00
manual_flatten.rs Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup 2021-12-17 13:40:22 +01:00
manual_memcpy.rs Remove a span from hir::ExprKind::MethodCall 2022-01-21 07:48:10 -06:00
mod.rs Remove a span from hir::ExprKind::MethodCall 2022-01-21 07:48:10 -06:00
mut_range_bound.rs Fix Visitor::NestedFilter in Clippy 2022-01-16 16:02:36 -06:00
needless_collect.rs Remove a span from hir::ExprKind::MethodCall 2022-01-21 07:48:10 -06:00
needless_range_loop.rs Remove a span from hir::ExprKind::MethodCall 2022-01-21 07:48:10 -06:00
never_loop.rs Remove a span from hir::ExprKind::MethodCall 2022-01-21 07:48:10 -06:00
same_item_push.rs Remove a span from hir::ExprKind::MethodCall 2022-01-21 07:48:10 -06:00
single_element_loop.rs Factor out single_segment_path 2022-01-28 16:02:43 -06:00
utils.rs chore 2022-02-02 11:25:15 +09:00
while_immutable_condition.rs Fix Visitor::NestedFilter in Clippy 2022-01-16 16:02:36 -06:00
while_let_loop.rs Merge commit '97a5daa65908e59744e2bc625b14849352231c75' into clippyup 2022-01-13 13:18:19 +01:00
while_let_on_iterator.rs Remove a span from hir::ExprKind::MethodCall 2022-01-21 07:48:10 -06:00