ignore host effect params in rustdoc

This commit is contained in:
Deadbeef 2023-09-20 01:34:37 +00:00
parent 7b1b17574b
commit a3b5f1ad85

View File

@ -793,6 +793,7 @@ fn clean_ty_generics<'tcx>(
} }
Some(clean_generic_param_def(param, cx)) Some(clean_generic_param_def(param, cx))
} }
ty::GenericParamDefKind::Const { is_host_effect: true, .. } => None,
ty::GenericParamDefKind::Const { .. } => Some(clean_generic_param_def(param, cx)), ty::GenericParamDefKind::Const { .. } => Some(clean_generic_param_def(param, cx)),
}) })
.collect::<ThinVec<GenericParamDef>>(); .collect::<ThinVec<GenericParamDef>>();