mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Rollup merge of #135478 - Kobzol:gcc-clippy, r=onur-ozkan
Run clippy for rustc_codegen_gcc on CI Requested on [Zulip](https://rust-lang.zulipchat.com/#narrow/channel/242791-t-infra/topic/Run.20clippy.20for.20rustc_codegen_gcc.20in.20the.20Rust.20CI). Opening as a draft, since it's not clear which rules should be applied to it. r? `@ghost`
This commit is contained in:
commit
86947bb18a
@ -334,6 +334,7 @@ lint_any!(
|
||||
CargoMiri, "src/tools/miri/cargo-miri", "cargo-miri";
|
||||
Clippy, "src/tools/clippy", "clippy";
|
||||
CollectLicenseMetadata, "src/tools/collect-license-metadata", "collect-license-metadata";
|
||||
CodegenGcc, "compiler/rustc_codegen_gcc", "rustc-codegen-gcc";
|
||||
Compiletest, "src/tools/compiletest", "compiletest";
|
||||
CoverageDump, "src/tools/coverage-dump", "coverage-dump";
|
||||
Jsondocck, "src/tools/jsondocck", "jsondocck";
|
||||
@ -400,6 +401,12 @@ impl Step for CI {
|
||||
],
|
||||
forbid: vec![],
|
||||
};
|
||||
builder.ensure(Std {
|
||||
target: self.target,
|
||||
config: self.config.merge(&library_clippy_cfg),
|
||||
crates: vec![],
|
||||
});
|
||||
|
||||
let compiler_clippy_cfg = LintConfig {
|
||||
allow: vec!["clippy::all".into()],
|
||||
warn: vec![],
|
||||
@ -419,16 +426,21 @@ impl Step for CI {
|
||||
],
|
||||
forbid: vec![],
|
||||
};
|
||||
|
||||
builder.ensure(Std {
|
||||
target: self.target,
|
||||
config: self.config.merge(&library_clippy_cfg),
|
||||
crates: vec![],
|
||||
});
|
||||
builder.ensure(Rustc {
|
||||
target: self.target,
|
||||
config: self.config.merge(&compiler_clippy_cfg),
|
||||
crates: vec![],
|
||||
});
|
||||
|
||||
let rustc_codegen_gcc = LintConfig {
|
||||
allow: vec![],
|
||||
warn: vec![],
|
||||
deny: vec!["warnings".into()],
|
||||
forbid: vec![],
|
||||
};
|
||||
builder.ensure(CodegenGcc {
|
||||
target: self.target,
|
||||
config: self.config.merge(&rustc_codegen_gcc),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -900,6 +900,7 @@ impl<'a> Builder<'a> {
|
||||
clippy::BuildManifest,
|
||||
clippy::CargoMiri,
|
||||
clippy::Clippy,
|
||||
clippy::CodegenGcc,
|
||||
clippy::CollectLicenseMetadata,
|
||||
clippy::Compiletest,
|
||||
clippy::CoverageDump,
|
||||
|
Loading…
Reference in New Issue
Block a user