diff --git a/src/librustdoc/clean/utils.rs b/src/librustdoc/clean/utils.rs index 912274c23d6cf..b0021d1234cd6 100644 --- a/src/librustdoc/clean/utils.rs +++ b/src/librustdoc/clean/utils.rs @@ -122,9 +122,8 @@ fn external_generic_args( .collect(); if cx.tcx.fn_trait_kind_from_lang_item(did).is_some() { - assert!(ty_kind.is_some()); - let inputs = match ty_kind { - Some(ty::Tuple(ref tys)) => tys.iter().map(|t| t.expect_ty().clean(cx)).collect(), + let inputs = match ty_kind.unwrap() { + ty::Tuple(tys) => tys.iter().map(|t| t.expect_ty().clean(cx)).collect(), _ => return GenericArgs::AngleBracketed { args, bindings }, }; let output = None;