We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
generics_to_path_params
1 parent cd9a2c0 commit 38d98a1Copy full SHA for 38d98a1
src/librustdoc/core.rs
@@ -236,8 +236,16 @@ impl<'tcx> DocContext<'tcx> {
236
ty::GenericParamDefKind::Type { .. } => {
237
args.push(hir::GenericArg::Type(self.ty_param_to_ty(param.clone())));
238
}
239
- ty::GenericParamDefKind::Const { .. } => {
240
- unimplemented!() // FIXME(const_generics)
+ ty::GenericParamDefKind::Const => {
+ args.push(hir::GenericArg::Const(hir::ConstArg {
241
+ value: hir::AnonConst {
242
+ hir_id: hir::DUMMY_HIR_ID,
243
+ body: hir::BodyId {
244
245
+ }
246
+ },
247
+ span: DUMMY_SP,
248
+ }))
249
250
251
0 commit comments