diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-05-28 13:34:29 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-07-01 01:35:39 +0200 |
| commit | 8f55152f8480e40ff08486f5b107dd3a149b6b14 (patch) | |
| tree | 182b7ecad486203546ebafcef38d8e02b8de9b13 /src/tools | |
| parent | 48af7714d81bfa9a30d2f0175968ca5232fa23b5 (diff) | |
| download | rust-8f55152f8480e40ff08486f5b107dd3a149b6b14.tar.gz rust-8f55152f8480e40ff08486f5b107dd3a149b6b14.zip | |
Did you mean to block nightlies on clippy?
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/build-manifest/src/main.rs | 22 | ||||
| m--------- | src/tools/clippy | 8 |
2 files changed, 26 insertions, 4 deletions
diff --git a/src/tools/build-manifest/src/main.rs b/src/tools/build-manifest/src/main.rs index 35fc2182313..92c4545429f 100644 --- a/src/tools/build-manifest/src/main.rs +++ b/src/tools/build-manifest/src/main.rs @@ -183,6 +183,7 @@ struct Builder { rust_release: String, cargo_release: String, rls_release: String, + clippy_release: String, rustfmt_release: String, llvm_tools_release: String, @@ -196,12 +197,14 @@ struct Builder { rust_version: Option<String>, cargo_version: Option<String>, rls_version: Option<String>, + clippy_version: Option<String>, rustfmt_version: Option<String>, llvm_tools_version: Option<String>, rust_git_commit_hash: Option<String>, cargo_git_commit_hash: Option<String>, rls_git_commit_hash: Option<String>, + clippy_git_commit_hash: Option<String>, rustfmt_git_commit_hash: Option<String>, llvm_tools_git_commit_hash: Option<String>, } @@ -214,6 +217,7 @@ fn main() { let rust_release = args.next().unwrap(); let cargo_release = args.next().unwrap(); let rls_release = args.next().unwrap(); + let clippy_release = args.next().unwrap(); let rustfmt_release = args.next().unwrap(); let llvm_tools_release = args.next().unwrap(); let s3_address = args.next().unwrap(); @@ -224,6 +228,7 @@ fn main() { rust_release, cargo_release, rls_release, + clippy_release, rustfmt_release, llvm_tools_release, @@ -237,12 +242,14 @@ fn main() { rust_version: None, cargo_version: None, rls_version: None, + clippy_version: None, rustfmt_version: None, llvm_tools_version: None, rust_git_commit_hash: None, cargo_git_commit_hash: None, rls_git_commit_hash: None, + clippy_git_commit_hash: None, rustfmt_git_commit_hash: None, llvm_tools_git_commit_hash: None, }.build(); @@ -259,6 +266,7 @@ impl Builder { self.rust_git_commit_hash = self.git_commit_hash("rust", "x86_64-unknown-linux-gnu"); self.cargo_git_commit_hash = self.git_commit_hash("cargo", "x86_64-unknown-linux-gnu"); self.rls_git_commit_hash = self.git_commit_hash("rls", "x86_64-unknown-linux-gnu"); + self.clippy_git_commit_hash = self.git_commit_hash("clippy", "x86_64-unknown-linux-gnu"); self.rustfmt_git_commit_hash = self.git_commit_hash("rustfmt", "x86_64-unknown-linux-gnu"); self.llvm_tools_git_commit_hash = self.git_commit_hash("llvm-tools", "x86_64-unknown-linux-gnu"); @@ -296,10 +304,12 @@ impl Builder { self.package("rust-docs", &mut manifest.pkg, TARGETS); self.package("rust-src", &mut manifest.pkg, &["*"]); self.package("rls-preview", &mut manifest.pkg, HOSTS); + self.package("clippy-preview", &mut manifest.pkg, HOSTS); self.package("rustfmt-preview", &mut manifest.pkg, HOSTS); self.package("rust-analysis", &mut manifest.pkg, TARGETS); self.package("llvm-tools", &mut manifest.pkg, TARGETS); + let clippy_present = manifest.pkg.contains_key("clippy-preview"); let rls_present = manifest.pkg.contains_key("rls-preview"); let rustfmt_present = manifest.pkg.contains_key("rustfmt-preview"); let llvm_tools_present = manifest.pkg.contains_key("llvm-tools"); @@ -345,6 +355,12 @@ impl Builder { }); } + if clippy_present { + extensions.push(Component { + pkg: "clippy-preview".to_string(), + target: host.to_string(), + }); + } if rls_present { extensions.push(Component { pkg: "rls-preview".to_string(), @@ -470,6 +486,8 @@ impl Builder { format!("cargo-{}-{}.tar.gz", self.cargo_release, target) } else if component == "rls" || component == "rls-preview" { format!("rls-{}-{}.tar.gz", self.rls_release, target) + } else if component == "clippy" || component == "clippy-preview" { + format!("clippy-{}-{}.tar.gz", self.clippy_release, target) } else if component == "rustfmt" || component == "rustfmt-preview" { format!("rustfmt-{}-{}.tar.gz", self.rustfmt_release, target) } else if component == "llvm_tools" { @@ -484,6 +502,8 @@ impl Builder { &self.cargo_version } else if component == "rls" || component == "rls-preview" { &self.rls_version + } else if component == "clippy" || component == "clippy-preview" { + &self.clippy_version } else if component == "rustfmt" || component == "rustfmt-preview" { &self.rustfmt_version } else if component == "llvm-tools" { @@ -498,6 +518,8 @@ impl Builder { &self.cargo_git_commit_hash } else if component == "rls" || component == "rls-preview" { &self.rls_git_commit_hash + } else if component == "clippy" || component == "clippy-preview" { + &self.clippy_git_commit_hash } else if component == "rustfmt" || component == "rustfmt-preview" { &self.rustfmt_git_commit_hash } else if component == "llvm-tools" { diff --git a/src/tools/clippy b/src/tools/clippy -Subproject ebe0b0eed596243a2839867363cb31d93f0b975 +Subproject b4b6e6558e3ccd5ef11758297dc064acceb15ef |
