about summary refs log tree commit diff
path: root/src/rustdoc-json-types
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-02-14 18:14:38 -0800
committerMichael Goulet <michael@errs.io>2022-02-27 21:36:29 -0800
commitca6e06efba2201da6be9d48f3f922fbb4e90af5f (patch)
treed589db449ecfe4427c7dee2f447ec7942f44140d /src/rustdoc-json-types
parent8a0c2c4e83c216811d96a4a5af9987431b75bd6f (diff)
downloadrust-ca6e06efba2201da6be9d48f3f922fbb4e90af5f.tar.gz
rust-ca6e06efba2201da6be9d48f3f922fbb4e90af5f.zip
make GATs print properly in traits
Diffstat (limited to 'src/rustdoc-json-types')
-rw-r--r--src/rustdoc-json-types/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rustdoc-json-types/lib.rs b/src/rustdoc-json-types/lib.rs
index be9bbc7391d..dfaec6991a4 100644
--- a/src/rustdoc-json-types/lib.rs
+++ b/src/rustdoc-json-types/lib.rs
@@ -233,6 +233,9 @@ pub enum ItemEnum {
         default: Option<String>,
     },
     AssocType {
+        /// generics and `where` clause
+        generics: Generics,
+        /// e.g. `: Sized`
         bounds: Vec<GenericBound>,
         /// e.g. `type X = usize;`
         default: Option<Type>,