Skip to content

Commit c58e52e

Browse files
fix
1 parent 80d8f29 commit c58e52e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -561,12 +561,7 @@ fn clean_generic_param_def(
561561
def.name,
562562
GenericParamDefKind::Const {
563563
ty: Box::new(clean_middle_ty(
564-
ty::Binder::dummy(
565-
cx.tcx
566-
.type_of(def.def_id)
567-
.no_bound_vars()
568-
.expect("const parameter types cannot be generic"),
569-
),
564+
ty::Binder::dummy(cx.tcx.type_of(def.def_id).instantiate_identity()),
570565
cx,
571566
Some(def.def_id),
572567
None,

0 commit comments

Comments
 (0)