]> git.lizzy.rs Git - rust.git/commitdiff
Updated lints with script
authorTaylor Cramer <cramertj@cs.washington.edu>
Fri, 25 Mar 2016 09:44:45 +0000 (02:44 -0700)
committermcarton <cartonmartin+git@gmail.com>
Sat, 2 Apr 2016 13:32:56 +0000 (15:32 +0200)
README.md
src/lib.rs

index e59012c81651c3f38436cdb0d5083eae9322943f..c81fb9b52c1a1a97e637501561446b4d44447756 100644 (file)
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ Table of contents:
 * [License](#license)
 
 ##Lints
-There are 139 lints included in this crate:
+There are 140 lints included in this crate:
 
 name                                                                                                                 | default | meaning
 ---------------------------------------------------------------------------------------------------------------------|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@@ -68,6 +68,7 @@ name
 [ineffective_bit_mask](https://github.com/Manishearth/rust-clippy/wiki#ineffective_bit_mask)                         | warn    | expressions where a bit mask will be rendered useless by a comparison, e.g. `(x | 1) > 2`
 [inline_always](https://github.com/Manishearth/rust-clippy/wiki#inline_always)                                       | warn    | `#[inline(always)]` is a bad idea in most cases
 [invalid_regex](https://github.com/Manishearth/rust-clippy/wiki#invalid_regex)                                       | deny    | finds invalid regular expressions in `Regex::new(_)` invocations
+[invalid_upcast_comparisons](https://github.com/Manishearth/rust-clippy/wiki#invalid_upcast_comparisons)             | warn    | a comparison involving an term's upcasting to be within the range of the other side of the term is always true or false
 [items_after_statements](https://github.com/Manishearth/rust-clippy/wiki#items_after_statements)                     | warn    | finds blocks where an item comes after a statement
 [iter_next_loop](https://github.com/Manishearth/rust-clippy/wiki#iter_next_loop)                                     | warn    | for-looping over `_.next()` which is probably not intended
 [len_without_is_empty](https://github.com/Manishearth/rust-clippy/wiki#len_without_is_empty)                         | warn    | traits and impls that have `.len()` but not `.is_empty()`
index 6834753adf0e5a44e215677350735734aca27f89..f3fc453cf69b10826f042ed3afb1ca938b548151 100644 (file)
@@ -368,9 +368,9 @@ pub fn plugin_registrar(reg: &mut Registry) {
         transmute::TRANSMUTE_PTR_TO_REF,
         transmute::USELESS_TRANSMUTE,
         types::ABSURD_EXTREME_COMPARISONS,
-        types::INVALID_UPCAST_COMPARISONS,
         types::BOX_VEC,
         types::CHAR_LIT_AS_U8,
+        types::INVALID_UPCAST_COMPARISONS,
         types::LET_UNIT_VALUE,
         types::LINKEDLIST,
         types::TYPE_COMPLEXITY,