mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
Add use_self
comment
This commit is contained in:
parent
8eeb3feadf
commit
d7ddb2abba
1 changed files with 4 additions and 0 deletions
|
@ -130,6 +130,10 @@ fn check_trait_method_impl_decl<'a, 'tcx: 'a>(
|
|||
None
|
||||
};
|
||||
|
||||
// `impl_decl_ty` (of type `hir::Ty`) represents the type declared in the signature.
|
||||
// `impl_ty` (of type `ty:TyS`) is the concrete type that the compiler has determined for
|
||||
// that declaration. We use `impl_decl_ty` to see if the type was declared as `Self`
|
||||
// and use `impl_ty` to check its concrete type.
|
||||
for (impl_decl_ty, (impl_ty, trait_ty)) in impl_decl.inputs.iter().chain(output_ty).zip(
|
||||
impl_method_sig
|
||||
.inputs_and_output
|
||||
|
|
Loading…
Reference in a new issue