@@ -4,7 +4,7 @@ use crate::utils::{
4
4
span_lint_and_help, span_lint_and_sugg, walk_ptrs_ty,
5
5
} ;
6
6
use if_chain:: if_chain;
7
- use rustc_ast:: ast:: { Crate as AstCrate , ItemKind , LitKind , Name , NodeId } ;
7
+ use rustc_ast:: ast:: { Crate as AstCrate , ItemKind , LitKind , NodeId } ;
8
8
use rustc_ast:: visit:: FnKind ;
9
9
use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
10
10
use rustc_errors:: Applicability ;
@@ -17,7 +17,7 @@ use rustc_lint::{EarlyContext, EarlyLintPass, LateContext, LateLintPass};
17
17
use rustc_middle:: hir:: map:: Map ;
18
18
use rustc_session:: { declare_lint_pass, declare_tool_lint, impl_lint_pass} ;
19
19
use rustc_span:: source_map:: { Span , Spanned } ;
20
- use rustc_span:: symbol:: SymbolStr ;
20
+ use rustc_span:: symbol:: { Symbol , SymbolStr } ;
21
21
22
22
use std:: borrow:: { Borrow , Cow } ;
23
23
@@ -245,8 +245,8 @@ impl EarlyLintPass for ClippyLintsInternal {
245
245
246
246
#[ derive( Clone , Debug , Default ) ]
247
247
pub struct LintWithoutLintPass {
248
- declared_lints : FxHashMap < Name , Span > ,
249
- registered_lints : FxHashSet < Name > ,
248
+ declared_lints : FxHashMap < Symbol , Span > ,
249
+ registered_lints : FxHashSet < Symbol > ,
250
250
}
251
251
252
252
impl_lint_pass ! ( LintWithoutLintPass => [ DEFAULT_LINT , LINT_WITHOUT_LINT_PASS ] ) ;
@@ -357,7 +357,7 @@ fn is_lint_ref_type<'tcx>(cx: &LateContext<'_, 'tcx>, ty: &Ty<'_>) -> bool {
357
357
}
358
358
359
359
struct LintCollector < ' a , ' tcx > {
360
- output : & ' a mut FxHashSet < Name > ,
360
+ output : & ' a mut FxHashSet < Symbol > ,
361
361
cx : & ' a LateContext < ' a , ' tcx > ,
362
362
}
363
363
0 commit comments