1
Fork 0

Rustup to *rustc 1.13.0-nightly (f1f40f850 2016-09-09)*

This commit is contained in:
mcarton 2016-09-09 20:24:20 +02:00
parent b08c7aa553
commit ab6669a641
No known key found for this signature in database
GPG key ID: 5E427C794CBA45E8
8 changed files with 17 additions and 21 deletions

View file

@ -214,9 +214,7 @@ fn has_is_empty(cx: &LateContext, expr: &Expr) -> bool {
.map_or(false, |ids| ids.iter().any(|i| is_is_empty(cx, i)))
}
ty::TyProjection(_) => ty.ty_to_def_id().map_or(false, |id| has_is_empty_impl(cx, &id)),
ty::TyEnum(id, _) |
ty::TyStruct(id, _) |
ty::TyUnion(id, _) => has_is_empty_impl(cx, &id.did),
ty::TyAdt(id, _) => has_is_empty_impl(cx, &id.did),
ty::TyArray(..) | ty::TyStr => true,
_ => false,
}