Skip to content

Commit

Permalink
Merge pull request #3315 from rust-lang-nursery/oli-obk-patch-1
Browse files Browse the repository at this point in the history
fix for rustc master
  • Loading branch information
Manishearth authored Oct 14, 2018
2 parents 1cb90cc + 212a4fe commit 5afdf8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/len_zero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ fn has_is_empty(cx: &LateContext<'_, '_>, expr: &Expr) -> bool {
let ty = &walk_ptrs_ty(cx.tables.expr_ty(expr));
match ty.sty {
ty::Dynamic(ref tt, ..) => cx.tcx
.associated_items(tt.principal().expect("trait impl not found").def_id())
.associated_items(tt.principal().def_id())
.any(|item| is_is_empty(cx, &item)),
ty::Projection(ref proj) => has_is_empty_impl(cx, proj.item_def_id),
ty::Adt(id, _) => has_is_empty_impl(cx, id.did),
Expand Down

0 comments on commit 5afdf8b

Please sign in to comment.