Add and use generics.is_empty() and generics.is_own_empty, rather than using generics' attributes
This commit is contained in:
parent
37dfd973b7
commit
23e8b03f00
2 changed files with 2 additions and 2 deletions
|
|
@ -225,7 +225,7 @@ impl {self_ty_without_ref} {{
|
|||
&& let ImplItemKind::Fn(sig, _) = item.kind
|
||||
&& let FnRetTy::Return(ret) = sig.decl.output
|
||||
&& is_nameable_in_impl_trait(ret)
|
||||
&& cx.tcx.generics_of(item_did).own_params.is_empty()
|
||||
&& cx.tcx.generics_of(item_did).is_own_empty()
|
||||
&& sig.decl.implicit_self == expected_implicit_self
|
||||
&& sig.decl.inputs.len() == 1
|
||||
&& let Some(imp) = get_parent_as_impl(cx.tcx, item.hir_id())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue