remove cfg-check in ci tool (#15063)

# Objective

- Missed in #14477
- This commands is not used anymore

## Solution

- Remove it
This commit is contained in:
François Mockers 2024-09-08 19:12:35 +02:00 committed by GitHub
parent 0a79a0ac8c
commit 8fb69dcbf0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 23 deletions

View file

@ -75,7 +75,6 @@ impl CI {
cmds.append(&mut commands::DocCheckCommand::default().prepare(sh, flags));
cmds.append(&mut commands::DocTestCommand::default().prepare(sh, flags));
cmds.append(&mut commands::CompileCheckCommand::default().prepare(sh, flags));
cmds.append(&mut commands::CfgCheckCommand::default().prepare(sh, flags));
cmds.append(&mut commands::CompileFailCommand::default().prepare(sh, flags));
cmds.append(&mut commands::BenchCheckCommand::default().prepare(sh, flags));
cmds.append(&mut commands::ExampleCheckCommand::default().prepare(sh, flags));
@ -101,7 +100,6 @@ enum Commands {
DocCheck(commands::DocCheckCommand),
DocTest(commands::DocTestCommand),
CompileCheck(commands::CompileCheckCommand),
CfgCheck(commands::CfgCheckCommand),
CompileFail(commands::CompileFailCommand),
BenchCheck(commands::BenchCheckCommand),
ExampleCheck(commands::ExampleCheckCommand),
@ -121,7 +119,6 @@ impl Prepare for Commands {
Commands::DocCheck(subcommand) => subcommand.prepare(sh, flags),
Commands::DocTest(subcommand) => subcommand.prepare(sh, flags),
Commands::CompileCheck(subcommand) => subcommand.prepare(sh, flags),
Commands::CfgCheck(subcommand) => subcommand.prepare(sh, flags),
Commands::CompileFail(subcommand) => subcommand.prepare(sh, flags),
Commands::BenchCheck(subcommand) => subcommand.prepare(sh, flags),
Commands::ExampleCheck(subcommand) => subcommand.prepare(sh, flags),

View file

@ -1,18 +0,0 @@
use crate::{Flag, Prepare, PreparedCommand};
use argh::FromArgs;
use xshell::cmd;
/// Checks that the project compiles using the nightly compiler with cfg checks enabled.
#[derive(FromArgs, Default)]
#[argh(subcommand, name = "cfg-check")]
pub struct CfgCheckCommand {}
impl Prepare for CfgCheckCommand {
fn prepare<'a>(&self, sh: &'a xshell::Shell, _flags: Flag) -> Vec<PreparedCommand<'a>> {
vec![PreparedCommand::new::<Self>(
cmd!(sh, "cargo +nightly check -Zcheck-cfg --workspace"),
"Please fix failing cfg checks in output above.",
)
.with_env_var("RUSTFLAGS", "-D warnings")]
}
}

View file

@ -1,5 +1,4 @@
pub use bench_check::*;
pub use cfg_check::*;
pub use clippy::*;
pub use compile::*;
pub use compile_check::*;
@ -14,7 +13,6 @@ pub use test::*;
pub use test_check::*;
mod bench_check;
mod cfg_check;
mod clippy;
mod compile;
mod compile_check;