File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,15 +48,15 @@ declare_clippy_lint! {
4848}
4949#[ derive( Clone , Debug ) ]
5050pub struct DisallowedType {
51- disallowed : Vec < conf:: DisallowedType > ,
51+ conf_disallowed : Vec < conf:: DisallowedType > ,
5252 def_ids : FxHashMap < DefId , Option < String > > ,
5353 prim_tys : FxHashMap < PrimTy , Option < String > > ,
5454}
5555
5656impl DisallowedType {
57- pub fn new ( disallowed : Vec < conf:: DisallowedType > ) -> Self {
57+ pub fn new ( conf_disallowed : Vec < conf:: DisallowedType > ) -> Self {
5858 Self {
59- disallowed ,
59+ conf_disallowed ,
6060 def_ids : FxHashMap :: default ( ) ,
6161 prim_tys : FxHashMap :: default ( ) ,
6262 }
@@ -83,7 +83,7 @@ impl_lint_pass!(DisallowedType => [DISALLOWED_TYPE]);
8383
8484impl < ' tcx > LateLintPass < ' tcx > for DisallowedType {
8585 fn check_crate ( & mut self , cx : & LateContext < ' _ > ) {
86- for conf in & self . disallowed {
86+ for conf in & self . conf_disallowed {
8787 let ( path, reason) = match conf {
8888 conf:: DisallowedType :: Simple ( path) => ( path, None ) ,
8989 conf:: DisallowedType :: WithReason { path, reason } => (
You can’t perform that action at this time.
0 commit comments