diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2023-02-25 19:08:29 -0500 |
|---|---|---|
| committer | Jason Newcomb <jsnewcomb@pm.me> | 2023-02-25 19:28:50 -0500 |
| commit | 0413fb35babdfe8fe2456e7b3d520f1ffb5de231 (patch) | |
| tree | 9938720b708db9e681ba8c47a2f93ab99bba4286 /clippy_lints/src/utils/internal_lints | |
| parent | e5df17aae5f9554ea8d241b4af91109400dc5cbd (diff) | |
| download | rust-0413fb35babdfe8fe2456e7b3d520f1ffb5de231.tar.gz rust-0413fb35babdfe8fe2456e7b3d520f1ffb5de231.zip | |
Merge commit '149392b0baa4730c68f3c3eadf5c6ed7b16b85a4' into clippyup
Diffstat (limited to 'clippy_lints/src/utils/internal_lints')
| -rw-r--r-- | clippy_lints/src/utils/internal_lints/unnecessary_def_path.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/utils/internal_lints/unnecessary_def_path.rs b/clippy_lints/src/utils/internal_lints/unnecessary_def_path.rs index ee5e42bae0f..b59ef4086cd 100644 --- a/clippy_lints/src/utils/internal_lints/unnecessary_def_path.rs +++ b/clippy_lints/src/utils/internal_lints/unnecessary_def_path.rs @@ -3,7 +3,7 @@ use clippy_utils::source::snippet_with_applicability; use clippy_utils::{def_path_def_ids, is_lint_allowed, match_any_def_paths, peel_hir_expr_refs}; use if_chain::if_chain; use rustc_ast::ast::LitKind; -use rustc_data_structures::fx::FxHashSet; +use rustc_data_structures::fx::{FxHashSet, FxIndexSet}; use rustc_errors::Applicability; use rustc_hir as hir; use rustc_hir::def::{DefKind, Res}; @@ -44,7 +44,7 @@ impl_lint_pass!(UnnecessaryDefPath => [UNNECESSARY_DEF_PATH]); #[derive(Default)] pub struct UnnecessaryDefPath { - array_def_ids: FxHashSet<(DefId, Span)>, + array_def_ids: FxIndexSet<(DefId, Span)>, linted_def_ids: FxHashSet<DefId>, } |
