diff options
| author | Ellen <supbscripter@gmail.com> | 2021-06-03 09:01:25 +0100 |
|---|---|---|
| committer | Ellen <supbscripter@gmail.com> | 2021-06-03 09:01:25 +0100 |
| commit | 6dff51f37d87eb02e8776032fa8da16c990a3283 (patch) | |
| tree | a532a1fdf5dad6ce89d9763ddb22caf4e6b4fa20 /src/rustdoc-json-types | |
| parent | da865095cf378fbfd07145c25fe5837ea091efeb (diff) | |
| download | rust-6dff51f37d87eb02e8776032fa8da16c990a3283.tar.gz rust-6dff51f37d87eb02e8776032fa8da16c990a3283.zip | |
rustdoc- Show defaults on const generics
Diffstat (limited to 'src/rustdoc-json-types')
| -rw-r--r-- | src/rustdoc-json-types/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustdoc-json-types/lib.rs b/src/rustdoc-json-types/lib.rs index 72a4d9a1830..6d9a5cb515a 100644 --- a/src/rustdoc-json-types/lib.rs +++ b/src/rustdoc-json-types/lib.rs @@ -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)] |
