@@ -1090,7 +1090,7 @@ fn type_of<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
10901090 }
10911091
10921092 NodeStructCtor ( & ref def) |
1093- NodeVariant ( & Spanned { node : hir:: Variant_ { data : ref def, .. } , .. } ) => {
1093+ NodeVariant ( & Spanned { node : hir:: VariantKind { data : ref def, .. } , .. } ) => {
10941094 match * def {
10951095 VariantData :: Unit ( ..) | VariantData :: Struct ( ..) => {
10961096 tcx. type_of ( tcx. hir . get_parent_did ( node_id) )
@@ -1123,7 +1123,7 @@ fn type_of<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
11231123 NodeExpr ( & hir:: Expr { node : ExprRepeat ( _, ref constant) , .. } )
11241124 if constant. id == node_id => tcx. types . usize ,
11251125
1126- NodeVariant ( & Spanned { node : Variant_ { disr_expr : Some ( ref e) , .. } , .. } )
1126+ NodeVariant ( & Spanned { node : VariantKind { disr_expr : Some ( ref e) , .. } , .. } )
11271127 if e. id == node_id => {
11281128 tcx. adt_def ( tcx. hir . get_parent_did ( node_id) )
11291129 . repr . discr_type ( ) . to_ty ( tcx)
@@ -1175,7 +1175,7 @@ fn fn_sig<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
11751175 }
11761176
11771177 NodeStructCtor ( & VariantData :: Tuple ( ref fields, _) ) |
1178- NodeVariant ( & Spanned { node : hir:: Variant_ {
1178+ NodeVariant ( & Spanned { node : hir:: VariantKind {
11791179 data : VariantData :: Tuple ( ref fields, _) , ..
11801180 } , .. } ) => {
11811181 let ty = tcx. type_of ( tcx. hir . get_parent_did ( node_id) ) ;
0 commit comments