about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJames Hinshelwood <jameshinshelwood1@gmail.com>2021-10-11 08:28:32 +0100
committerJames Hinshelwood <jameshinshelwood1@gmail.com>2021-10-11 08:29:56 +0100
commit886cbb18821bdd9a5548dedbe6caa0ccb2dafb3f (patch)
tree9af7dd2a99b5e5f6d5ff5f280b0971f9eb3d1991
parent857a4073b8b76bd29ff9504b5f015e5021b5d9b2 (diff)
downloadrust-886cbb18821bdd9a5548dedbe6caa0ccb2dafb3f.tar.gz
rust-886cbb18821bdd9a5548dedbe6caa0ccb2dafb3f.zip
Rename `disallowed` to `conf_disallowed`
Co-authored-by: James Hinshelwood <james.hinshelwood@bigpayme.com>
-rw-r--r--clippy_lints/src/disallowed_type.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/clippy_lints/src/disallowed_type.rs b/clippy_lints/src/disallowed_type.rs
index 8113c388018..48f781516f4 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::DisallowedType>,
+    conf_disallowed: Vec<conf::DisallowedType>,
     def_ids: FxHashMap<DefId, Option<String>>,
     prim_tys: FxHashMap<PrimTy, Option<String>>,
 }
 
 impl DisallowedType {
-    pub fn new(disallowed: Vec<conf::DisallowedType>) -> Self {
+    pub fn new(conf_disallowed: Vec<conf::DisallowedType>) -> 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 } => (