rust-clippy/tests/ui-toml
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
..
arithmetic_side_effects_allowed Merge commit 'b52fb5234cd7c11ecfae51897a6f7fa52e8777fc' into clippyup 2022-09-09 13:36:26 +02:00
await_holding_invalid_type Return multiple resolutions from def_path_res 2022-11-04 21:58:07 +00:00
bad_toml Merge commit 'd7b5cbf065b88830ca519adcb73fad4c0d24b1c7' into clippyup 2022-06-16 17:39:06 +02:00
bad_toml_type Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup 2022-08-11 19:42:16 +02:00
conf_deprecated_key Merge remote-tracking branch 'upstream/master' into rustup 2022-10-06 09:19:29 +02:00
dbg_macro Merge commit 'd9ddce8a223cb9916389c039777b6966ea448dc8' into clippyup 2022-06-04 13:34:07 +02:00
disallowed_macros Add disallowed_macros lint 2022-10-05 13:44:06 +00:00
disallowed_names_append Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup 2022-08-11 19:42:16 +02:00
disallowed_names_replace Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup 2022-08-11 19:42:16 +02:00
doc_valid_idents_append Merge commit 'd7b5cbf065b88830ca519adcb73fad4c0d24b1c7' into clippyup 2022-06-16 17:39:06 +02:00
doc_valid_idents_replace Merge commit 'd7b5cbf065b88830ca519adcb73fad4c0d24b1c7' into clippyup 2022-06-16 17:39:06 +02:00
duplicated_keys Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup 2022-08-11 19:42:16 +02:00
expect_used Fix typo in expect_used and unwrap_used warning messages 2022-11-17 15:02:48 +00:00
fn_params_excessive_bools bless clippy 2022-10-01 10:03:06 +00:00
functions_maxlines Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
good_toml_no_false_negatives Merge commit 'd7b5cbf065b88830ca519adcb73fad4c0d24b1c7' into clippyup 2022-06-16 17:39:06 +02:00
invalid_min_rust_version Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup 2020-12-06 15:01:03 +01:00
large_include_file bless clippy 2022-10-01 10:03:06 +00:00
lint_decimal_readability Don't abort compilation after giving a lint error 2021-11-08 01:22:28 +00:00
max_suggested_slice_pattern_length Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
min_rust_version Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
missing_enforced_import_rename Merge commit '61eb38aeda6cb54b93b872bf503d70084c4d621c' into clippyup 2021-07-01 18:17:38 +02:00
mut_key make arc-likes for mutable-key configurable 2022-10-25 01:51:04 +02:00
nonstandard_macro_braces bless clippy 2022-10-01 10:03:06 +00:00
print_macro Add allow-print-in-tests config 2022-11-04 20:33:04 +03:00
strict_non_send_fields_in_send_ty bless clippy 2022-10-01 10:03:06 +00:00
struct_excessive_bools bless clippy 2022-10-01 10:03:06 +00:00
toml_disallow Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup 2022-08-11 19:42:16 +02:00
toml_disallowed_methods Return multiple resolutions from def_path_res 2022-11-04 21:58:07 +00:00
toml_disallowed_types Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
toml_trivially_copy Merge commit 'cb7915b00c235e9b5861564f3be78dba330980ee' into clippyup 2021-09-28 18:03:12 +01:00
toml_unknown_key Add allow-print-in-tests config 2022-11-04 20:33:04 +03:00
unwrap_used Fix typo in expect_used and unwrap_used warning messages 2022-11-17 15:02:48 +00:00
upper_case_acronyms_aggressive Merge commit 'b40ea209e7f14c8193ddfc98143967b6a2f4f5c9' into clippyup 2021-04-08 17:50:13 +02:00
vec_box_sized fix vec-box-size-threshold off-by-one error 2022-11-14 16:06:21 +01:00
zero_single_char_names Add test for zero single char names 2020-04-15 13:35:44 +02:00
update-all-references.sh Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00