From 7a6c03f876ee49754cd2a75b846bd38b17d7a1cf Mon Sep 17 00:00:00 2001 From: HMPerson1 Date: Thu, 18 Jan 2018 17:29:14 -0500 Subject: [PATCH] Add `is_unit_expr` to deprecated lints list --- clippy_lints/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs index c14724840784..3f2ae888bc07 100644 --- a/clippy_lints/src/lib.rs +++ b/clippy_lints/src/lib.rs @@ -247,6 +247,10 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) { "string_to_string", "using `string::to_string` is common even today and specialization will likely happen soon", ); + store.register_removed( + "is_unit_expr", + "superseded by `let_unit_value` and `unit_arg`", + ); // end deprecated lints, do not remove this comment, it’s used in `update_lints` reg.register_late_lint_pass(box serde_api::Serde);