about summary refs log tree commit diff
path: root/clippy_dev
diff options
context:
space:
mode:
authorxFrednet <xFrednet@gmail.com>2021-10-17 16:57:13 +0200
committerxFrednet <xFrednet@gmail.com>2021-11-10 19:48:30 +0100
commit63cb41098bf1d9f1948492dd4c53e33ba2db828a (patch)
treef315b1a2579e8ca3739eb738c161ead01431baab /clippy_dev
parent23ed79260baa31c24610a42470d379dd434b025a (diff)
Manually add `clippy::version` attribute to deprecated lints
Diffstat (limited to 'clippy_dev')
-rw-r--r--clippy_dev/src/update_lints.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/clippy_dev/src/update_lints.rs b/clippy_dev/src/update_lints.rs
index 21b2b3b66f4..8dd073ef405 100644
--- a/clippy_dev/src/update_lints.rs
+++ b/clippy_dev/src/update_lints.rs
@@ -18,7 +18,7 @@ static DEC_CLIPPY_LINT_RE: SyncLazy<Regex> = SyncLazy::new(|| {
         r#"(?x)
     declare_clippy_lint!\s*[\{(]
     (?:\s+///.*)*
-    (?:\s*\#\[clippy::version\s*=\s*"[^"]*"\])
+    (?:\s*\#\[clippy::version\s*=\s*"[^"]*"\])?
     \s+pub\s+(?P<name>[A-Z_][A-Z_0-9]*)\s*,\s*
     (?P<cat>[a-z_]+)\s*,\s*
     "(?P<desc>(?:[^"\\]+|\\(?s).(?-s))*)"\s*[})]
@@ -32,6 +32,7 @@ static DEC_DEPRECATED_LINT_RE: SyncLazy<Regex> = SyncLazy::new(|| {
         r#"(?x)
     declare_deprecated_lint!\s*[{(]\s*
     (?:\s+///.*)*
+    (?:\s*\#\[clippy::version\s*=\s*"[^"]*"\])?
     \s+pub\s+(?P<name>[A-Z_][A-Z_0-9]*)\s*,\s*
     "(?P<desc>(?:[^"\\]+|\\(?s).(?-s))*)"\s*[})]
 "#,