]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/clean/types.rs
Rollup merge of #103648 - jyn514:no-preview, r=Mark-Simulacrum
[rust.git] / src / librustdoc / clean / types.rs
index 3d13f7463cbb09d5428251cf416e01ac1c1c3e3b..340d6d7df180fc8696aaf5f227579738cfc08fb2 100644 (file)
@@ -2081,7 +2081,7 @@ fn from(prim_ty: hir::PrimTy) -> PrimitiveType {
 
 #[derive(Clone, Debug)]
 pub(crate) struct Struct {
-    pub(crate) struct_type: CtorKind,
+    pub(crate) ctor_kind: Option<CtorKind>,
     pub(crate) generics: Generics,
     pub(crate) fields: Vec<Item>,
 }
@@ -2109,7 +2109,7 @@ pub(crate) fn has_stripped_entries(&self) -> bool {
 /// only as a variant in an enum.
 #[derive(Clone, Debug)]
 pub(crate) struct VariantStruct {
-    pub(crate) struct_type: CtorKind,
+    pub(crate) ctor_kind: Option<CtorKind>,
     pub(crate) fields: Vec<Item>,
 }