We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fa636d0 + 765a713 commit 2aca724Copy full SHA for 2aca724
src/librustdoc/clean/mod.rs
@@ -1821,11 +1821,8 @@ fn maybe_expand_private_type_alias<'tcx>(
1821
}
1822
_ => None,
1823
});
1824
- if let Some(ct) = const_ {
1825
- args.insert(
1826
- param.def_id.to_def_id(),
1827
- SubstParam::Constant(clean_const(ct, cx)),
1828
- );
+ if let Some(_) = const_ {
+ args.insert(param.def_id.to_def_id(), SubstParam::Constant);
1829
1830
// FIXME(const_generics_defaults)
1831
indices.consts += 1;
src/librustdoc/clean/types.rs
@@ -2546,7 +2546,7 @@ pub(crate) enum TypeBindingKind {
2546
pub(crate) enum SubstParam {
2547
Type(Type),
2548
Lifetime(Lifetime),
2549
- Constant(Constant),
+ Constant,
2550
2551
2552
impl SubstParam {
0 commit comments