rust/clippy_lints/src/utils
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
..
internal_lints Merge remote-tracking branch 'upstream/master' into rustup 2022-01-27 14:23:31 +01:00
author.rs Remove a span from hir::ExprKind::MethodCall 2022-01-21 07:48:10 -06:00
conf.rs multiple configs: add tests 2022-01-31 18:36:15 +01:00
inspector.rs Remove a span from hir::ExprKind::MethodCall 2022-01-21 07:48:10 -06:00
internal_lints.rs Rename path_to_res to def_path_res 2022-01-28 15:45:41 -06:00
mod.rs Merge commit '97a5daa65908e59744e2bc625b14849352231c75' into clippyup 2022-01-13 13:18:19 +01:00