Merge remote-tracking branch 'upstream/master' into rustup

This commit is contained in:
xFrednet 2022-05-20 20:37:38 +02:00
commit 4e6cf0036e
No known key found for this signature in database
GPG key ID: FCDCBF29AF64D601
241 changed files with 4457 additions and 1730 deletions

View file

@ -54,11 +54,11 @@ impl<'tcx> LateLintPass<'tcx> for SameNameMethod {
if matches!(cx.tcx.def_kind(id.def_id), DefKind::Impl)
&& let item = cx.tcx.hir().item(id)
&& let ItemKind::Impl(Impl {
items,
of_trait,
self_ty,
..
}) = &item.kind
items,
of_trait,
self_ty,
..
}) = &item.kind
&& let TyKind::Path(QPath::Resolved(_, Path { res, .. })) = self_ty.kind
{
if !map.contains_key(res) {