diff --git a/clippy_lints/src/disallowed_type.rs b/clippy_lints/src/disallowed_type.rs index 8113c3880..48f781516 100644 --- a/clippy_lints/src/disallowed_type.rs +++ b/clippy_lints/src/disallowed_type.rs @@ -48,15 +48,15 @@ declare_clippy_lint! { } #[derive(Clone, Debug)] pub struct DisallowedType { - disallowed: Vec, + conf_disallowed: Vec, def_ids: FxHashMap>, prim_tys: FxHashMap>, } impl DisallowedType { - pub fn new(disallowed: Vec) -> Self { + pub fn new(conf_disallowed: Vec) -> Self { Self { - disallowed, + conf_disallowed, def_ids: FxHashMap::default(), prim_tys: FxHashMap::default(), } @@ -83,7 +83,7 @@ impl_lint_pass!(DisallowedType => [DISALLOWED_TYPE]); impl<'tcx> LateLintPass<'tcx> for DisallowedType { fn check_crate(&mut self, cx: &LateContext<'_>) { - for conf in &self.disallowed { + for conf in &self.conf_disallowed { let (path, reason) = match conf { conf::DisallowedType::Simple(path) => (path, None), conf::DisallowedType::WithReason { path, reason } => (