@@ -4,7 +4,7 @@ use crate::utils::{
44 span_lint_and_help, span_lint_and_sugg, walk_ptrs_ty,
55} ;
66use 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 } ;
88use rustc_ast:: visit:: FnKind ;
99use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
1010use rustc_errors:: Applicability ;
@@ -17,7 +17,7 @@ use rustc_lint::{EarlyContext, EarlyLintPass, LateContext, LateLintPass};
1717use rustc_middle:: hir:: map:: Map ;
1818use rustc_session:: { declare_lint_pass, declare_tool_lint, impl_lint_pass} ;
1919use rustc_span:: source_map:: { Span , Spanned } ;
20- use rustc_span:: symbol:: SymbolStr ;
20+ use rustc_span:: symbol:: { Symbol , SymbolStr } ;
2121
2222use std:: borrow:: { Borrow , Cow } ;
2323
@@ -245,8 +245,8 @@ impl EarlyLintPass for ClippyLintsInternal {
245245
246246#[ derive( Clone , Debug , Default ) ]
247247pub struct LintWithoutLintPass {
248- declared_lints : FxHashMap < Name , Span > ,
249- registered_lints : FxHashSet < Name > ,
248+ declared_lints : FxHashMap < Symbol , Span > ,
249+ registered_lints : FxHashSet < Symbol > ,
250250}
251251
252252impl_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 {
357357}
358358
359359struct LintCollector < ' a , ' tcx > {
360- output : & ' a mut FxHashSet < Name > ,
360+ output : & ' a mut FxHashSet < Symbol > ,
361361 cx : & ' a LateContext < ' a , ' tcx > ,
362362}
363363
0 commit comments