From ad78fcf5246c9accb2a35ced91d85b710648abc9 Mon Sep 17 00:00:00 2001 From: varkor Date: Mon, 6 May 2019 13:55:28 +0100 Subject: [PATCH] Ignore const parameters when constructing type bounds in rustdoc Co-Authored-By: Gabriel Smith --- src/librustdoc/clean/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index de74a6a5400..3a260db8065 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -1706,9 +1706,7 @@ impl<'a, 'tcx> Clean for (&'a ty::Generics, } Some(param.clean(cx)) } - ty::GenericParamDefKind::Const { .. } => { - unimplemented!() // FIXME(const_generics) - } + ty::GenericParamDefKind::Const { .. } => None, }).collect::>(); let mut where_predicates = preds.predicates.iter()