From 8f0a84dba60441f2f4eb34e288decc9251975fb5 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Wed, 19 Feb 2020 12:00:28 +0100 Subject: [PATCH] Fail bors --- README.md | 2 +- clippy_lints/src/lib.rs | 3 ++- tests/ui/absurd-extreme-comparisons.stderr | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 39cc9310f512..ff08b828562e 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![Clippy Test](https://github.com/rust-lang/rust-clippy/workflows/Clippy%20Test/badge.svg?branch=auto&event=push)](https://github.com/rust-lang/rust-clippy/actions?query=workflow%3A%22Clippy+Test%22+event%3Apush+branch%3Aauto) [![License: MIT OR Apache-2.0](https://img.shields.io/crates/l/clippy.svg)](#license) -A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code. +A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code. hdksjhaksjhdk [There are 355 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html) diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs index 8bd0d187061a..5aad4c65fa4c 100644 --- a/clippy_lints/src/lib.rs +++ b/clippy_lints/src/lib.rs @@ -17,7 +17,8 @@ #[allow(unused_extern_crates)] extern crate fmt_macros; #[allow(unused_extern_crates)] -extern crate rustc; +extern crate rustc +; #[allow(unused_extern_crates)] extern crate rustc_ast_pretty; #[allow(unused_extern_crates)] diff --git a/tests/ui/absurd-extreme-comparisons.stderr b/tests/ui/absurd-extreme-comparisons.stderr index 4ef364148cda..58a1de837bab 100644 --- a/tests/ui/absurd-extreme-comparisons.stderr +++ b/tests/ui/absurd-extreme-comparisons.stderr @@ -4,6 +4,7 @@ error: this comparison involving the minimum or maximum element for this type co LL | u <= 0; | ^^^^^^ | + = note: `-D clippy::absurd-extreme-comparisons` implied by `-D warnings` = help: because `0` is the minimum value for this type, the case where the two sides are not equal never occurs, consider using `u == 0` instead