@@ -52,6 +52,7 @@ use rustc_attr::{Deprecation, StabilityLevel};
5252use rustc_data_structures:: flock;
5353use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
5454use rustc_hir as hir;
55+ use rustc_hir:: def:: CtorKind ;
5556use rustc_hir:: def_id:: { DefId , LOCAL_CRATE } ;
5657use rustc_hir:: Mutability ;
5758use rustc_middle:: middle:: stability;
@@ -3100,7 +3101,7 @@ fn item_struct(
31003101 _ => None ,
31013102 } )
31023103 . peekable ( ) ;
3103- if let clean :: StructType :: Plain = s. struct_type {
3104+ if let CtorKind :: Fictive = s. struct_type {
31043105 if fields. peek ( ) . is_some ( ) {
31053106 write ! (
31063107 w,
@@ -3350,7 +3351,7 @@ fn render_struct(
33503351 w : & mut Buffer ,
33513352 it : & clean:: Item ,
33523353 g : Option < & clean:: Generics > ,
3353- ty : clean :: StructType ,
3354+ ty : CtorKind ,
33543355 fields : & [ clean:: Item ] ,
33553356 tab : & str ,
33563357 structhead : bool ,
@@ -3367,7 +3368,7 @@ fn render_struct(
33673368 write ! ( w, "{}" , g. print( ) )
33683369 }
33693370 match ty {
3370- clean :: StructType :: Plain => {
3371+ CtorKind :: Fictive => {
33713372 if let Some ( g) = g {
33723373 write ! ( w, "{}" , WhereClause { gens: g, indent: 0 , end_newline: true } )
33733374 }
@@ -3399,7 +3400,7 @@ fn render_struct(
33993400 }
34003401 write ! ( w, "}}" ) ;
34013402 }
3402- clean :: StructType :: Tuple => {
3403+ CtorKind :: Fn => {
34033404 write ! ( w, "(" ) ;
34043405 for ( i, field) in fields. iter ( ) . enumerate ( ) {
34053406 if i > 0 {
@@ -3424,7 +3425,7 @@ fn render_struct(
34243425 }
34253426 write ! ( w, ";" ) ;
34263427 }
3427- clean :: StructType :: Unit => {
3428+ CtorKind :: Const => {
34283429 // Needed for PhantomData.
34293430 if let Some ( g) = g {
34303431 write ! ( w, "{}" , WhereClause { gens: g, indent: 0 , end_newline: false } )
@@ -4459,7 +4460,7 @@ fn sidebar_struct(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, s: &clea
44594460 let fields = get_struct_fields_name ( & s. fields ) ;
44604461
44614462 if !fields. is_empty ( ) {
4462- if let clean :: StructType :: Plain = s. struct_type {
4463+ if let CtorKind :: Fictive = s. struct_type {
44634464 sidebar. push_str ( & format ! (
44644465 "<a class=\" sidebar-title\" href=\" #fields\" >Fields</a>\
44654466 <div class=\" sidebar-links\" >{}</div>",
0 commit comments