Temporarily disable the needless_borrow lint
This commit is contained in:
parent
d247d9c690
commit
0692b2bb92
5 changed files with 15 additions and 6 deletions
|
|
@ -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,
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue