Auto merge of #5150 - krishna-veerareddy:rustup-69004, r=flip1995
Rustup to rust-lang/rust#68911 changelog: none
This commit is contained in:
commit
701a5791ac
clippy_lints/src
@ -279,7 +279,7 @@ fn has_is_empty(cx: &LateContext<'_, '_>, expr: &Expr<'_>) -> bool {
|
||||
cx.tcx
|
||||
.inherent_impls(id)
|
||||
.iter()
|
||||
.any(|imp| cx.tcx.associated_items(*imp).any(|item| is_is_empty(cx, &item)))
|
||||
.any(|imp| cx.tcx.associated_items(*imp).iter().any(|item| is_is_empty(cx, &item)))
|
||||
}
|
||||
|
||||
let ty = &walk_ptrs_ty(cx.tables.expr_ty(expr));
|
||||
@ -288,6 +288,7 @@ fn has_is_empty(cx: &LateContext<'_, '_>, expr: &Expr<'_>) -> bool {
|
||||
if let Some(principal) = tt.principal() {
|
||||
cx.tcx
|
||||
.associated_items(principal.def_id())
|
||||
.iter()
|
||||
.any(|item| is_is_empty(cx, &item))
|
||||
} else {
|
||||
false
|
||||
|
@ -125,6 +125,7 @@ fn check_trait_method_impl_decl<'a, 'tcx>(
|
||||
let trait_method = cx
|
||||
.tcx
|
||||
.associated_items(impl_trait_ref.def_id)
|
||||
.iter()
|
||||
.find(|assoc_item| {
|
||||
assoc_item.kind == ty::AssocKind::Method
|
||||
&& cx
|
||||
|
Loading…
x
Reference in New Issue
Block a user