File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
src/librustdoc/html/render Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -187,11 +187,10 @@ pub(crate) fn build_index<'tcx>(
187187 lastpathid,
188188 crate_paths,
189189 ) ;
190- if let Some ( converted_associated_type) = converted_associated_type {
191- * associated_type = converted_associated_type;
192- } else {
190+ let Some ( converted_associated_type) = converted_associated_type else {
193191 return false ;
194- }
192+ } ;
193+ * associated_type = converted_associated_type;
195194 for constraint in constraints {
196195 convert_render_type (
197196 constraint,
@@ -538,15 +537,9 @@ pub(crate) fn get_function_type_for_search<'tcx>(
538537 }
539538 } ) ;
540539 let ( mut inputs, mut output, where_clause) = match * item. kind {
541- clean:: FunctionItem ( ref f) => {
540+ clean:: FunctionItem ( ref f) | clean :: MethodItem ( ref f , _ ) | clean :: TyMethodItem ( ref f ) => {
542541 get_fn_inputs_and_outputs ( f, tcx, impl_or_trait_generics, cache)
543542 }
544- clean:: MethodItem ( ref m, _) => {
545- get_fn_inputs_and_outputs ( m, tcx, impl_or_trait_generics, cache)
546- }
547- clean:: TyMethodItem ( ref m) => {
548- get_fn_inputs_and_outputs ( m, tcx, impl_or_trait_generics, cache)
549- }
550543 _ => return None ,
551544 } ;
552545
You can’t perform that action at this time.
0 commit comments