Temporarily disable the needless_borrow lint

This commit is contained in:
Oliver Schneider 2018-04-08 10:55:42 +02:00
parent d247d9c690
commit 0692b2bb92
No known key found for this signature in database
GPG key ID: 1D5CB4FC597C3004
5 changed files with 15 additions and 6 deletions

View file

@ -592,7 +592,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
mutex_atomic::MUTEX_ATOMIC,
needless_bool::BOOL_COMPARISON,
needless_bool::NEEDLESS_BOOL,
needless_borrow::NEEDLESS_BORROW,
needless_borrowed_ref::NEEDLESS_BORROWED_REFERENCE,
needless_pass_by_value::NEEDLESS_PASS_BY_VALUE,
needless_update::NEEDLESS_UPDATE,
@ -771,7 +770,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
misc_early::ZERO_PREFIXED_LITERAL,
needless_bool::BOOL_COMPARISON,
needless_bool::NEEDLESS_BOOL,
needless_borrow::NEEDLESS_BORROW,
needless_borrowed_ref::NEEDLESS_BORROWED_REFERENCE,
needless_update::NEEDLESS_UPDATE,
no_effect::NO_EFFECT,
@ -872,6 +870,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
attrs::EMPTY_LINE_AFTER_OUTER_ATTR,
fallible_impl_from::FALLIBLE_IMPL_FROM,
mutex_atomic::MUTEX_INTEGER,
needless_borrow::NEEDLESS_BORROW,
ranges::RANGE_PLUS_ONE,
]);
}

View file

@ -22,7 +22,7 @@ use utils::{in_macro, snippet_opt, span_lint_and_then};
/// ```
declare_clippy_lint! {
pub NEEDLESS_BORROW,
complexity,
nursery,
"taking a reference that is going to be automatically dereferenced"
}