Change Hash{Map, Set} to FxHash{Map, Set}
This commit is contained in:
parent
cfa3c33b1d
commit
e28440d2e0
15 changed files with 67 additions and 65 deletions
|
@ -2,8 +2,8 @@ use regex_syntax;
|
|||
use rustc::hir::*;
|
||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||
use rustc::{declare_tool_lint, lint_array};
|
||||
use rustc_data_structures::fx::FxHashSet;
|
||||
use if_chain::if_chain;
|
||||
use std::collections::HashSet;
|
||||
use syntax::ast::{LitKind, NodeId, StrStyle};
|
||||
use syntax::source_map::{BytePos, Span};
|
||||
use crate::utils::{is_expn_of, match_def_path, match_type, opt_def_id, paths, span_help_and_lint, span_lint};
|
||||
|
@ -67,7 +67,7 @@ declare_clippy_lint! {
|
|||
|
||||
#[derive(Clone, Default)]
|
||||
pub struct Pass {
|
||||
spans: HashSet<Span>,
|
||||
spans: FxHashSet<Span>,
|
||||
last: Option<NodeId>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue