File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
src/librustdoc/html/render Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -2025,13 +2025,11 @@ 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 {
2030- clean:: MethodItem ( ..) | clean:: RequiredMethodItem ( _) => {
2031- methods. push ( trait_item)
2032- }
2028+ for impl_item in & impl_. items {
2029+ match impl_item. kind {
2030+ clean:: MethodItem ( ..) | clean:: RequiredMethodItem ( _) => methods. push ( impl_item) ,
20332031 clean:: RequiredAssocTypeItem ( ..) | clean:: AssocTypeItem ( ..) => {
2034- assoc_types. push ( trait_item )
2032+ assoc_types. push ( impl_item )
20352033 }
20362034 clean:: RequiredAssocConstItem ( ..)
20372035 | clean:: ProvidedAssocConstItem ( _)
@@ -2041,7 +2039,7 @@ fn render_impl(
20412039 & mut default_impl_items,
20422040 & mut impl_items,
20432041 cx,
2044- trait_item ,
2042+ impl_item ,
20452043 if trait_. is_some ( ) { & i. impl_item } else { parent } ,
20462044 link,
20472045 render_mode,
You can’t perform that action at this time.
0 commit comments