diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2024-04-27 13:58:37 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2024-06-01 07:50:32 -0400 |
| commit | 2334264463eee8aab8c4ebd642f80131d60603b8 (patch) | |
| tree | ac653dee209cd95f9a58df8b89c3ca25ff7c3484 | |
| parent | febfa5157c8b3ce7430c07b2e0d84972d2e48cc0 (diff) | |
| download | rust-2334264463eee8aab8c4ebd642f80131d60603b8.tar.gz rust-2334264463eee8aab8c4ebd642f80131d60603b8.zip | |
Deduplicate supertrait_def_ids code
| -rw-r--r-- | clippy_lints/src/len_zero.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/len_zero.rs b/clippy_lints/src/len_zero.rs index 2091e74665f..57e0a7aa2c7 100644 --- a/clippy_lints/src/len_zero.rs +++ b/clippy_lints/src/len_zero.rs @@ -253,7 +253,7 @@ fn check_trait_items(cx: &LateContext<'_>, visited_trait: &Item<'_>, trait_items // fill the set with current and super traits fn fill_trait_set(traitt: DefId, set: &mut DefIdSet, cx: &LateContext<'_>) { if set.insert(traitt) { - for supertrait in rustc_trait_selection::traits::supertrait_def_ids(cx.tcx, traitt) { + for supertrait in cx.tcx.supertrait_def_ids(traitt) { fill_trait_set(supertrait, set, cx); } } |
