From 97705b7ea622e4d6ea670c6a3a8ba1bfe97296e0 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Thu, 20 May 2021 12:30:31 +0200 Subject: Merge commit '9e3cd88718cd1912a515d26dbd9c4019fd5a9577' into clippyup --- clippy_dev/src/lib.rs | 4 +++- clippy_dev/src/main.rs | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'clippy_dev') diff --git a/clippy_dev/src/lib.rs b/clippy_dev/src/lib.rs index 1e5a140e964..69f42aca8b6 100644 --- a/clippy_dev/src/lib.rs +++ b/clippy_dev/src/lib.rs @@ -1,5 +1,7 @@ -#![cfg_attr(feature = "deny-warnings", deny(warnings))] #![feature(once_cell)] +#![cfg_attr(feature = "deny-warnings", deny(warnings))] +// warn on lints, that are included in `rust-lang/rust`s bootstrap +#![warn(rust_2018_idioms, unused_lifetimes)] use itertools::Itertools; use regex::Regex; diff --git a/clippy_dev/src/main.rs b/clippy_dev/src/main.rs index f4da783502c..7040c257c83 100644 --- a/clippy_dev/src/main.rs +++ b/clippy_dev/src/main.rs @@ -1,4 +1,6 @@ #![cfg_attr(feature = "deny-warnings", deny(warnings))] +// warn on lints, that are included in `rust-lang/rust`s bootstrap +#![warn(rust_2018_idioms, unused_lifetimes)] use clap::{App, Arg, ArgMatches, SubCommand}; use clippy_dev::{bless, fmt, ide_setup, new_lint, serve, stderr_length_check, update_lints}; -- cgit 1.4.1-3-g733a5