@@ -605,46 +605,49 @@ and constant_expr_kind_of_postcard (ctx : of_postcard_ctx) (st : postcard_state)
605605 let * _0 = big_uint_of_postcard ctx st in
606606 Ok (CPtrNoProvenance _0)
607607 | 14 ->
608+ let * _0 = string_of_postcard ctx st in
609+ Ok (CExternSymbol _0)
610+ | 15 ->
608611 let * _0 = ty_of_postcard ctx st in
609612 Ok (CTypeId _0)
610- | 15 ->
613+ | 16 ->
611614 let * _0 = list_of_postcard byte_of_postcard ctx st in
612615 Ok (CRawMemory _0)
613- | 16 ->
616+ | 17 ->
614617 let * _0 =
615618 de_bruijn_var_of_postcard const_generic_var_id_of_postcard ctx st
616619 in
617620 Ok (CVar _0)
618- | 17 ->
621+ | 18 ->
619622 let * _0 = global_decl_ref_of_postcard ctx st in
620623 Ok (CGlobal _0)
621- | 18 ->
624+ | 19 ->
622625 let * _0 = fn_ptr_of_postcard ctx st in
623626 let * _1 = list_of_postcard constant_expr_of_postcard ctx st in
624627 Ok (CCall (_0, _1))
625- | 19 ->
628+ | 20 ->
626629 let * _0 = trait_ref_of_postcard ctx st in
627630 let * _1 = assoc_const_id_of_postcard ctx st in
628631 Ok (CTraitConst (_0, _1))
629- | 20 ->
632+ | 21 ->
630633 let * _0 = poly_trait_ref_of_postcard ctx st in
631634 Ok (CVTableRef _0)
632- | 21 ->
635+ | 22 ->
633636 let * _0 = type_decl_ref_of_postcard ctx st in
634637 let * _1 = variant_id_of_postcard ctx st in
635638 Ok (CDiscriminant (_0, _1))
636- | 22 ->
639+ | 23 ->
637640 let * _0 = ty_of_postcard ctx st in
638641 Ok (CSizeOf _0)
639- | 23 ->
642+ | 24 ->
640643 let * _0 = ty_of_postcard ctx st in
641644 Ok (CAlignOf _0)
642- | 24 ->
645+ | 25 ->
643646 let * _0 = type_decl_ref_of_postcard ctx st in
644647 let * _1 = option_of_postcard variant_id_of_postcard ctx st in
645648 let * _2 = field_id_of_postcard ctx st in
646649 Ok (COffsetOf (_0, _1, _2))
647- | 25 ->
650+ | 26 ->
648651 let * _0 = string_of_postcard ctx st in
649652 Ok (COpaque _0)
650653 | _ -> Error (" unknown enum variant tag: " ^ string_of_int __tag))
@@ -2033,31 +2036,35 @@ and rustc_attribute_kind_of_postcard (ctx : of_postcard_ctx)
20332036 let * name = string_of_postcard ctx st in
20342037 Ok (RustcAttributeKindLinkSection name)
20352038 | 8 ->
2039+ let * _0 = rustc_linkage_of_postcard ctx st in
2040+ let * _1 = span_of_postcard ctx st in
2041+ Ok (RustcAttributeKindLinkage (_0, _1))
2042+ | 9 ->
20362043 let * _0 = span_of_postcard ctx st in
20372044 Ok (RustcAttributeKindMayDangle _0)
2038- | 9 ->
2045+ | 10 ->
20392046 let * _0 = span_of_postcard ctx st in
20402047 Ok (RustcAttributeKindNaked _0)
2041- | 10 -> Ok RustcAttributeKindNoLink
2042- | 11 ->
2048+ | 11 -> Ok RustcAttributeKindNoLink
2049+ | 12 ->
20432050 let * _0 = span_of_postcard ctx st in
20442051 Ok (RustcAttributeKindNoMangle _0)
2045- | 12 ->
2052+ | 13 ->
20462053 let * _0 = span_of_postcard ctx st in
20472054 Ok (RustcAttributeKindNonExhaustive _0)
2048- | 13 ->
2055+ | 14 ->
20492056 let * _0 = rustc_optimize_attr_of_postcard ctx st in
20502057 let * _1 = span_of_postcard ctx st in
20512058 Ok (RustcAttributeKindOptimize (_0, _1))
2052- | 14 ->
2059+ | 15 ->
20532060 let * align = u64_of_postcard ctx st in
20542061 let * span = span_of_postcard ctx st in
20552062 Ok (RustcAttributeKindRustcAlign (align, span))
2056- | 15 -> Ok RustcAttributeKindRustcIntrinsic
2057- | 16 ->
2063+ | 16 -> Ok RustcAttributeKindRustcIntrinsic
2064+ | 17 ->
20582065 let * reason = option_of_postcard string_of_postcard ctx st in
20592066 Ok (RustcAttributeKindShouldPanic reason)
2060- | 17 ->
2067+ | 18 ->
20612068 let * features =
20622069 list_of_postcard
20632070 (pair_of_postcard string_of_postcard span_of_postcard)
@@ -2066,7 +2073,7 @@ and rustc_attribute_kind_of_postcard (ctx : of_postcard_ctx)
20662073 let * attr_span = span_of_postcard ctx st in
20672074 let * was_forced = bool_of_postcard ctx st in
20682075 Ok (RustcAttributeKindTargetFeature (features, attr_span, was_forced))
2069- | 18 ->
2076+ | 19 ->
20702077 let * _0 = span_of_postcard ctx st in
20712078 Ok (RustcAttributeKindTrackCaller _0)
20722079 | _ -> Error (" unknown enum variant tag: " ^ string_of_int __tag))
@@ -3035,6 +3042,22 @@ and layout_of_postcard (ctx : of_postcard_ctx) (st : postcard_state) :
30353042 ({ size; align; discriminator; inhabited; variant_layouts; repr }
30363043 : layout))
30373044
3045+ and rustc_linkage_of_postcard (ctx : of_postcard_ctx ) (st : postcard_state ) :
3046+ (rustc_linkage , string ) result =
3047+ combine_error_msgs st __FUNCTION__
3048+ (let * __tag = int_of_postcard ctx st in
3049+ match __tag with
3050+ | 0 -> Ok RustcLinkageAvailableExternally
3051+ | 1 -> Ok RustcLinkageCommon
3052+ | 2 -> Ok RustcLinkageExternalWeak
3053+ | 3 -> Ok RustcLinkageExternal
3054+ | 4 -> Ok RustcLinkageInternal
3055+ | 5 -> Ok RustcLinkageLinkOnceAny
3056+ | 6 -> Ok RustcLinkageLinkOnceODR
3057+ | 7 -> Ok RustcLinkageWeakAny
3058+ | 8 -> Ok RustcLinkageWeakODR
3059+ | _ -> Error (" unknown enum variant tag: " ^ string_of_int __tag))
3060+
30383061and local_of_postcard (ctx : of_postcard_ctx ) (st : postcard_state ) :
30393062 (local , string ) result =
30403063 combine_error_msgs st __FUNCTION__
0 commit comments