rust/clippy_utils/src
bors f60186f35d Auto merge of #9800 - Alexendoo:def_path_res_multiple, r=dswij
Return multiple resolutions from `def_path_res`

Changes `def_path_res` to return all the resolutions matching the path rather than the first one (with a namespace hint that covered some cases).  This would fix any issues that come up with multiple versions of the same crate being present as they all have the same crate name

It also adds resolution of `impl _ {}` items for local items, and removes struct field resolution as it didn't seem to be used anywhere

I tested it on a local crate and it worked for the multiple crate issue, but I couldn't come up with a test that worked well with `// aux-build`, maybe `// aux-crate` after https://github.com/rust-lang/rust/pull/103266 could work but I'm not sure on that either

changelog: [`disallowed_methods`], [`disallowed_types`], [`disallowed_macros`]: fix path resolution with multiple versions of the same crate
changelog: [`disallowed_methods`]: Resolve methods in `impl`s in the current crate
2022-11-19 09:05:50 +00:00
..
ast_utils Merge commit '928e72dd10' into clippyup 2021-02-25 11:25:22 +01:00
mir Fix bug in referent_used_exactly_once 2022-10-12 09:21:08 -04:00
ast_utils.rs Rename AssocItemKind::TyAlias to AssocItemKind::Type 2022-10-10 02:31:37 +00:00
attrs.rs Fix adjacent code 2022-10-07 05:07:44 -04:00
check_proc_macro.rs ImplItemKind::TyAlias => ImplItemKind::Type 2022-10-09 07:09:57 +00:00
comparisons.rs Merge commit '928e72dd10' into clippyup 2021-02-25 11:25:22 +01:00
consts.rs Extend needless_borrowed_reference to structs and tuples, ignore _ 2022-11-15 18:24:18 +00:00
diagnostics.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
eager_or_lazy.rs Don't suggest moving tuple structs with a significant drop to late evaluation. 2022-10-08 11:23:05 -04:00
higher.rs Merge commit 'd9ddce8a22' into clippyup 2022-06-04 13:34:07 +02:00
hir_utils.rs Extend needless_borrowed_reference to structs and tuples, ignore _ 2022-11-15 18:24:18 +00:00
lib.rs Auto merge of #9800 - Alexendoo:def_path_res_multiple, r=dswij 2022-11-19 09:05:50 +00:00
macros.rs Add unused_format_specs lint 2022-10-17 11:36:05 +00:00
msrvs.rs feat: implement manual_is_ascii_check lint 2022-11-07 16:39:36 +09:00
numeric_literal.rs [unnecessary_cast] Do not lint negative hexadecimal literals when cast as float 2022-10-08 16:15:18 +02:00
paths.rs feat: add new lint seek_from_current 2022-10-25 12:26:06 +09:00
ptr.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
qualify_min_const_fn.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
source.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
str_utils.rs Merge commit '0eff589afc' into clippyup 2021-12-30 15:10:43 +01:00
sugg.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
sym_helper.rs Merge commit '928e72dd10' into clippyup 2021-02-25 11:25:22 +01:00
ty.rs result_large_err show largest variants in err msg 2022-11-07 18:00:35 -08:00
usage.rs Change InferCtxtBuilder from enter to build 2022-10-07 07:10:40 -05:00
visitors.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00