File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_typeck/src/check Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -932,11 +932,11 @@ pub(super) fn check_impl_items_against_trait<'tcx>(
932
932
// Locate trait definition and items
933
933
let trait_def = tcx. trait_def ( impl_trait_ref. def_id ) ;
934
934
935
- let impl_items = || impl_item_refs. iter ( ) . map ( |iiref| tcx. hir ( ) . impl_item ( iiref. id ) ) ;
935
+ let impl_items = impl_item_refs. iter ( ) . map ( |iiref| tcx. hir ( ) . impl_item ( iiref. id ) ) ;
936
936
937
937
// Check existing impl methods to see if they are both present in trait
938
938
// and compatible with trait signature
939
- for impl_item in impl_items ( ) {
939
+ for impl_item in impl_items {
940
940
let namespace = impl_item. kind . namespace ( ) ;
941
941
let ty_impl_item = tcx. associated_item ( tcx. hir ( ) . local_def_id ( impl_item. hir_id ) ) ;
942
942
let ty_trait_item = tcx
You can’t perform that action at this time.
0 commit comments