Rustup to rustc 1.16.0-nightly (468227129
2017-01-03): Recover patterns from arguments
This commit is contained in:
parent
a262e3bb0b
commit
e02fac4896
9 changed files with 46 additions and 36 deletions
|
@ -104,7 +104,7 @@ fn check_trait_items(cx: &LateContext, item: &Item, trait_items: &[TraitItemRef]
|
|||
|
||||
if !trait_items.iter().any(|i| is_named_self(cx, i, "is_empty")) {
|
||||
if let Some(i) = trait_items.iter().find(|i| is_named_self(cx, i, "len")) {
|
||||
if cx.access_levels.is_exported(i.id) {
|
||||
if cx.access_levels.is_exported(i.id.node_id) {
|
||||
span_lint(cx,
|
||||
LEN_WITHOUT_IS_EMPTY,
|
||||
i.span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue