about summary refs log tree commit diff
path: root/clippy_utils/src
diff options
context:
space:
mode:
authorxFrednet <xFrednet@gmail.com>2021-02-18 23:40:33 +0100
committerxFrednet <xFrednet@gmail.com>2021-05-05 18:35:33 +0200
commit8dca1b8f618fdec3f1b354d9bafa01b32ecc8ab6 (patch)
treec50dfd2af941bb9c3ec8ff8aa3f620ec0029b780 /clippy_utils/src
parent68d702f88ded863b9cde999f1850b32c6531fe11 (diff)
downloadrust-8dca1b8f618fdec3f1b354d9bafa01b32ecc8ab6.tar.gz
rust-8dca1b8f618fdec3f1b354d9bafa01b32ecc8ab6.zip
Metadata collection: Collecting Applicability assign values
Diffstat (limited to 'clippy_utils/src')
-rw-r--r--clippy_utils/src/paths.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/clippy_utils/src/paths.rs b/clippy_utils/src/paths.rs
index 91e5cd6c046..46f58b788e6 100644
--- a/clippy_utils/src/paths.rs
+++ b/clippy_utils/src/paths.rs
@@ -7,6 +7,13 @@
 pub const ANY_TRAIT: [&str; 3] = ["core", "any", "Any"];
 #[cfg(feature = "metadata-collector-lint")]
 pub const APPLICABILITY: [&str; 2] = ["rustc_lint_defs", "Applicability"];
+#[cfg(feature = "metadata-collector-lint")]
+pub const APPLICABILITY_VALUES: [[&str; 3]; 4] = [
+    ["rustc_lint_defs", "Applicability", "MachineApplicable"],
+    ["rustc_lint_defs", "Applicability", "MaybeIncorrect"],
+    ["rustc_lint_defs", "Applicability", "HasPlaceholders"],
+    ["rustc_lint_defs", "Applicability", "Unspecified"],
+];
 pub const ARC_PTR_EQ: [&str; 4] = ["alloc", "sync", "Arc", "ptr_eq"];
 pub const ASMUT_TRAIT: [&str; 3] = ["core", "convert", "AsMut"];
 pub const ASREF_TRAIT: [&str; 3] = ["core", "convert", "AsRef"];