Implement const generics in generics_to_path_params
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
This commit is contained in:
parent
cd9a2c0b54
commit
38d98a1b22
@ -236,8 +236,16 @@ impl<'tcx> DocContext<'tcx> {
|
||||
ty::GenericParamDefKind::Type { .. } => {
|
||||
args.push(hir::GenericArg::Type(self.ty_param_to_ty(param.clone())));
|
||||
}
|
||||
ty::GenericParamDefKind::Const { .. } => {
|
||||
unimplemented!() // FIXME(const_generics)
|
||||
ty::GenericParamDefKind::Const => {
|
||||
args.push(hir::GenericArg::Const(hir::ConstArg {
|
||||
value: hir::AnonConst {
|
||||
hir_id: hir::DUMMY_HIR_ID,
|
||||
body: hir::BodyId {
|
||||
hir_id: hir::DUMMY_HIR_ID,
|
||||
}
|
||||
},
|
||||
span: DUMMY_SP,
|
||||
}))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user