rustdoc- Show defaults on const generics

This commit is contained in:
Ellen
2021-06-03 09:01:25 +01:00
parent da865095cf
commit 6dff51f37d
6 changed files with 32 additions and 9 deletions

View File

@@ -324,7 +324,7 @@ pub struct GenericParamDef {
pub enum GenericParamDefKind {
Lifetime,
Type { bounds: Vec<GenericBound>, default: Option<Type> },
Const(Type),
Const { ty: Type, default: Option<String> },
}
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]