diff --git a/README.md b/README.md index 628133a8a668..16343961550d 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,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