1
Fork 0

merged upstream master

This commit is contained in:
llogiq 2015-06-01 13:55:55 +02:00
commit 7f5891184d
7 changed files with 152 additions and 5 deletions

View file

@ -13,7 +13,7 @@ use syntax::ast::*;
use misc::walk_ty;
declare_lint!(pub LEN_ZERO, Warn,
"Warn on usage of double-mut refs, e.g. '&mut &mut ...'");
"Warn when .is_empty() could be used instead of checking .len()");
declare_lint!(pub LEN_WITHOUT_IS_EMPTY, Warn,
"Warn on traits and impls that have .len() but not .is_empty()");