From 7842dbc4f5af4818c89d830607383bfe349cd7e7 Mon Sep 17 00:00:00 2001 From: xFrednet Date: Fri, 20 May 2022 23:32:09 +0200 Subject: [PATCH] Remove duplicated code and ignore deadlock test --- clippy_dev/src/main.rs | 21 ------------------- .../src/significant_drop_in_scrutinee.rs | 2 +- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/clippy_dev/src/main.rs b/clippy_dev/src/main.rs index 8dd2b7f95346..d5cd7ca96c0c 100644 --- a/clippy_dev/src/main.rs +++ b/clippy_dev/src/main.rs @@ -319,26 +319,5 @@ fn get_clap_config<'a>() -> ArgMatches<'a> { .help("This lint will be uplifted into rustc"), ), ) - .subcommand( - SubCommand::with_name("rename_lint") - .about("Renames the given lint") - .arg( - Arg::with_name("old_name") - .index(1) - .required(true) - .help("The name of the lint to rename"), - ) - .arg( - Arg::with_name("new_name") - .index(2) - .required_unless("uplift") - .help("The new name of the lint"), - ) - .arg( - Arg::with_name("uplift") - .long("uplift") - .help("This lint will be uplifted into rustc"), - ), - ) .get_matches() } diff --git a/clippy_lints/src/significant_drop_in_scrutinee.rs b/clippy_lints/src/significant_drop_in_scrutinee.rs index 4cebfd7a93f7..424b361a905c 100644 --- a/clippy_lints/src/significant_drop_in_scrutinee.rs +++ b/clippy_lints/src/significant_drop_in_scrutinee.rs @@ -29,7 +29,7 @@ declare_clippy_lint! { /// the match block and thus will not unlock. /// /// ### Example - /// ```rust + /// ```rust.ignore /// # use std::sync::Mutex; /// /// # struct State {}