about summary refs log tree commit diff
path: root/clippy_dev/src
diff options
context:
space:
mode:
authorJane Lusby <jlusby42@gmail.com>2019-06-08 11:47:24 -0700
committerJane Lusby <jlusby42@gmail.com>2019-06-12 12:29:37 -0700
commit5abcff2be5a7c698376c1495fc267f07d7f25e1c (patch)
treeacbe7d009a030e1af70b591d46730a40ace1811d /clippy_dev/src
parentf6367c41dc2f8d262c741100b24396afc62d9389 (diff)
downloadrust-5abcff2be5a7c698376c1495fc267f07d7f25e1c.tar.gz
rust-5abcff2be5a7c698376c1495fc267f07d7f25e1c.zip
move Lint static def into its own module
Diffstat (limited to 'clippy_dev/src')
-rw-r--r--clippy_dev/src/main.rs13
1 files changed, 3 insertions, 10 deletions
diff --git a/clippy_dev/src/main.rs b/clippy_dev/src/main.rs
index 4c50cc3b81e..e33b052cf28 100644
--- a/clippy_dev/src/main.rs
+++ b/clippy_dev/src/main.rs
@@ -95,20 +95,13 @@ fn update_lints(update_mode: &UpdateMode) {
     sorted_usable_lints.sort_by_key(|lint| lint.name.clone());
 
     std::fs::write(
-        "../src/lintlist.rs",
+        "../src/lintlist/mod.rs",
         &format!(
             "\
 //! This file is managed by util/dev update_lints. Do not edit.
 
-/// Lint data parsed from the Clippy source code.
-#[derive(Clone, PartialEq, Debug)]
-pub struct Lint {{
-    pub name: &'static str,
-    pub group: &'static str,
-    pub desc: &'static str,
-    pub deprecation: Option<&'static str>,
-    pub module: &'static str,
-}}
+mod lint;
+use lint::Lint;
 
 pub const ALL_LINTS: [Lint; {}] = {:#?};\n",
             sorted_usable_lints.len(),