diff options
| author | xFrednet <xFrednet@gmail.com> | 2022-05-20 23:32:09 +0200 |
|---|---|---|
| committer | xFrednet <xFrednet@gmail.com> | 2022-05-20 23:32:58 +0200 |
| commit | 7842dbc4f5af4818c89d830607383bfe349cd7e7 (patch) | |
| tree | dacea1b4a1629db9d07a04528e07f89e88c47371 | |
| parent | 8283238973f67753ffdfb358fd01a10951762716 (diff) | |
| download | rust-7842dbc4f5af4818c89d830607383bfe349cd7e7.tar.gz rust-7842dbc4f5af4818c89d830607383bfe349cd7e7.zip | |
Remove duplicated code and ignore deadlock test
| -rw-r--r-- | clippy_dev/src/main.rs | 21 | ||||
| -rw-r--r-- | clippy_lints/src/significant_drop_in_scrutinee.rs | 2 |
2 files changed, 1 insertions, 22 deletions
diff --git a/clippy_dev/src/main.rs b/clippy_dev/src/main.rs index 8dd2b7f9534..d5cd7ca96c0 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 4cebfd7a93f..424b361a905 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 {} |
