1
Fork 0

Change Hash{Map, Set} to FxHash{Map, Set}

This commit is contained in:
flip1995 2018-09-12 01:34:52 +02:00
parent cfa3c33b1d
commit e28440d2e0
No known key found for this signature in database
GPG key ID: ECF9412261FAA470
15 changed files with 67 additions and 65 deletions

View file

@ -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>,
}