File tree Expand file tree Collapse file tree
src/librustdoc/html/render Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2025,13 +2025,13 @@ fn render_impl(
20252025 let mut methods = Vec :: new ( ) ;
20262026
20272027 if !impl_. is_negative_trait_impl ( ) {
2028- for trait_item in & impl_. items {
2029- match trait_item . kind {
2028+ for impl_item in & impl_. items {
2029+ match impl_item . kind {
20302030 clean:: MethodItem ( ..) | clean:: RequiredMethodItem ( _) => {
2031- methods. push ( trait_item )
2031+ methods. push ( impl_item )
20322032 }
20332033 clean:: RequiredAssocTypeItem ( ..) | clean:: AssocTypeItem ( ..) => {
2034- assoc_types. push ( trait_item )
2034+ assoc_types. push ( impl_item )
20352035 }
20362036 clean:: RequiredAssocConstItem ( ..)
20372037 | clean:: ProvidedAssocConstItem ( _)
@@ -2041,7 +2041,7 @@ fn render_impl(
20412041 & mut default_impl_items,
20422042 & mut impl_items,
20432043 cx,
2044- trait_item ,
2044+ impl_item ,
20452045 if trait_. is_some ( ) { & i. impl_item } else { parent } ,
20462046 link,
20472047 render_mode,
You can’t perform that action at this time.
0 commit comments