Skip to content

Commit 165ec15

Browse files
echistyakovfacebook-github-bot
authored andcommitted
Simplify premadeThriftTypesMap
Summary: We don't need an interim slice. We can just put everything into a map directly. This simplifies code, reduces allocations and speeds up start-up time. #build_rule_type[go_library,go_binary,go_test] Reviewed By: a-lafrance Differential Revision: D74627078 fbshipit-source-id: c829a88a8ac376cd0fc6a96a9f3363f7e84dc676
1 parent 08f1e48 commit 165ec15

File tree

90 files changed

+1267
-2437
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+1267
-2437
lines changed

third-party/thrift/src/thrift/compiler/generate/templates/go/metadata.go.mustache

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,26 +56,13 @@ var (
5656
{{/program:thrift_metadata_types}}
5757
)
5858

59-
// Helper type to allow us to store Thrift types in a slice at compile time,
60-
// and put them in a map at runtime. See comment at the top of template
61-
// about a compilation limitation that affects map literals.
62-
type thriftTypeWithFullName struct {
63-
fullName string
64-
thriftType *{{program:metadata_qualifier}}ThriftType
65-
}
66-
6759
var premadeThriftTypesMap = func() map[string]*{{program:metadata_qualifier}}ThriftType {
68-
thriftTypesWithFullName := make([]thriftTypeWithFullName, 0)
60+
fbthriftThriftTypesMap := make(map[string]*{{program:metadata_qualifier}}ThriftType)
6961
{{#program:thrift_metadata_types}}
7062
{{#type:named?}}
71-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "{{type:full_name}}", {{type:metadata_name}} })
63+
fbthriftThriftTypesMap["{{type:full_name}}"] = {{type:metadata_name}}
7264
{{/type:named?}}
7365
{{/program:thrift_metadata_types}}
74-
75-
fbthriftThriftTypesMap := make(map[string]*{{program:metadata_qualifier}}ThriftType, len(thriftTypesWithFullName))
76-
for _, value := range thriftTypesWithFullName {
77-
fbthriftThriftTypesMap[value.fullName] = value.thriftType
78-
}
7966
return fbthriftThriftTypesMap
8067
}()
8168

third-party/thrift/src/thrift/compiler/test/fixtures/adapter/out/go/gen-go/module/metadata.go

Lines changed: 83 additions & 96 deletions
Large diffs are not rendered by default.

third-party/thrift/src/thrift/compiler/test/fixtures/adapter/out/go/gen-go/thrift/annotation/cpp/metadata.go

Lines changed: 28 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -181,48 +181,35 @@ var (
181181
}()
182182
)
183183

184-
// Helper type to allow us to store Thrift types in a slice at compile time,
185-
// and put them in a map at runtime. See comment at the top of template
186-
// about a compilation limitation that affects map literals.
187-
type thriftTypeWithFullName struct {
188-
fullName string
189-
thriftType *metadata.ThriftType
190-
}
191-
192184
var premadeThriftTypesMap = func() map[string]*metadata.ThriftType {
193-
thriftTypesWithFullName := make([]thriftTypeWithFullName, 0)
194-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.RefType", premadeThriftType_cpp_RefType })
195-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.EnumUnderlyingType", premadeThriftType_cpp_EnumUnderlyingType })
196-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "string", premadeThriftType_string })
197-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.Name", premadeThriftType_cpp_Name })
198-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.Type", premadeThriftType_cpp_Type })
199-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.Ref", premadeThriftType_cpp_Ref })
200-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "bool", premadeThriftType_bool })
201-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.Lazy", premadeThriftType_cpp_Lazy })
202-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.DisableLazyChecksum", premadeThriftType_cpp_DisableLazyChecksum })
203-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.Adapter", premadeThriftType_cpp_Adapter })
204-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.PackIsset", premadeThriftType_cpp_PackIsset })
205-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.MinimizePadding", premadeThriftType_cpp_MinimizePadding })
206-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.ScopedEnumAsUnionType", premadeThriftType_cpp_ScopedEnumAsUnionType })
207-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.FieldInterceptor", premadeThriftType_cpp_FieldInterceptor })
208-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.UseOpEncode", premadeThriftType_cpp_UseOpEncode })
209-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.EnumType", premadeThriftType_cpp_EnumType })
210-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.Frozen2Exclude", premadeThriftType_cpp_Frozen2Exclude })
211-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.Frozen2RequiresCompleteContainerParams", premadeThriftType_cpp_Frozen2RequiresCompleteContainerParams })
212-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.ProcessInEbThreadUnsafe", premadeThriftType_cpp_ProcessInEbThreadUnsafe })
213-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.RuntimeAnnotation", premadeThriftType_cpp_RuntimeAnnotation })
214-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.UseCursorSerialization", premadeThriftType_cpp_UseCursorSerialization })
215-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.GenerateDeprecatedHeaderClientMethods", premadeThriftType_cpp_GenerateDeprecatedHeaderClientMethods })
216-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.AllowLegacyNonOptionalRef", premadeThriftType_cpp_AllowLegacyNonOptionalRef })
217-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.DeprecatedTerseWrite", premadeThriftType_cpp_DeprecatedTerseWrite })
218-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.AllowLegacyDeprecatedTerseWritesRef", premadeThriftType_cpp_AllowLegacyDeprecatedTerseWritesRef })
219-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.EnableCustomTypeOrdering", premadeThriftType_cpp_EnableCustomTypeOrdering })
220-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "cpp.GenerateServiceMethodDecorator", premadeThriftType_cpp_GenerateServiceMethodDecorator })
221-
222-
fbthriftThriftTypesMap := make(map[string]*metadata.ThriftType, len(thriftTypesWithFullName))
223-
for _, value := range thriftTypesWithFullName {
224-
fbthriftThriftTypesMap[value.fullName] = value.thriftType
225-
}
185+
fbthriftThriftTypesMap := make(map[string]*metadata.ThriftType)
186+
fbthriftThriftTypesMap["cpp.RefType"] = premadeThriftType_cpp_RefType
187+
fbthriftThriftTypesMap["cpp.EnumUnderlyingType"] = premadeThriftType_cpp_EnumUnderlyingType
188+
fbthriftThriftTypesMap["string"] = premadeThriftType_string
189+
fbthriftThriftTypesMap["cpp.Name"] = premadeThriftType_cpp_Name
190+
fbthriftThriftTypesMap["cpp.Type"] = premadeThriftType_cpp_Type
191+
fbthriftThriftTypesMap["cpp.Ref"] = premadeThriftType_cpp_Ref
192+
fbthriftThriftTypesMap["bool"] = premadeThriftType_bool
193+
fbthriftThriftTypesMap["cpp.Lazy"] = premadeThriftType_cpp_Lazy
194+
fbthriftThriftTypesMap["cpp.DisableLazyChecksum"] = premadeThriftType_cpp_DisableLazyChecksum
195+
fbthriftThriftTypesMap["cpp.Adapter"] = premadeThriftType_cpp_Adapter
196+
fbthriftThriftTypesMap["cpp.PackIsset"] = premadeThriftType_cpp_PackIsset
197+
fbthriftThriftTypesMap["cpp.MinimizePadding"] = premadeThriftType_cpp_MinimizePadding
198+
fbthriftThriftTypesMap["cpp.ScopedEnumAsUnionType"] = premadeThriftType_cpp_ScopedEnumAsUnionType
199+
fbthriftThriftTypesMap["cpp.FieldInterceptor"] = premadeThriftType_cpp_FieldInterceptor
200+
fbthriftThriftTypesMap["cpp.UseOpEncode"] = premadeThriftType_cpp_UseOpEncode
201+
fbthriftThriftTypesMap["cpp.EnumType"] = premadeThriftType_cpp_EnumType
202+
fbthriftThriftTypesMap["cpp.Frozen2Exclude"] = premadeThriftType_cpp_Frozen2Exclude
203+
fbthriftThriftTypesMap["cpp.Frozen2RequiresCompleteContainerParams"] = premadeThriftType_cpp_Frozen2RequiresCompleteContainerParams
204+
fbthriftThriftTypesMap["cpp.ProcessInEbThreadUnsafe"] = premadeThriftType_cpp_ProcessInEbThreadUnsafe
205+
fbthriftThriftTypesMap["cpp.RuntimeAnnotation"] = premadeThriftType_cpp_RuntimeAnnotation
206+
fbthriftThriftTypesMap["cpp.UseCursorSerialization"] = premadeThriftType_cpp_UseCursorSerialization
207+
fbthriftThriftTypesMap["cpp.GenerateDeprecatedHeaderClientMethods"] = premadeThriftType_cpp_GenerateDeprecatedHeaderClientMethods
208+
fbthriftThriftTypesMap["cpp.AllowLegacyNonOptionalRef"] = premadeThriftType_cpp_AllowLegacyNonOptionalRef
209+
fbthriftThriftTypesMap["cpp.DeprecatedTerseWrite"] = premadeThriftType_cpp_DeprecatedTerseWrite
210+
fbthriftThriftTypesMap["cpp.AllowLegacyDeprecatedTerseWritesRef"] = premadeThriftType_cpp_AllowLegacyDeprecatedTerseWritesRef
211+
fbthriftThriftTypesMap["cpp.EnableCustomTypeOrdering"] = premadeThriftType_cpp_EnableCustomTypeOrdering
212+
fbthriftThriftTypesMap["cpp.GenerateServiceMethodDecorator"] = premadeThriftType_cpp_GenerateServiceMethodDecorator
226213
return fbthriftThriftTypesMap
227214
}()
228215

third-party/thrift/src/thrift/compiler/test/fixtures/adapter/out/go/gen-go/thrift/annotation/hack/metadata.go

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -98,33 +98,20 @@ var (
9898
}()
9999
)
100100

101-
// Helper type to allow us to store Thrift types in a slice at compile time,
102-
// and put them in a map at runtime. See comment at the top of template
103-
// about a compilation limitation that affects map literals.
104-
type thriftTypeWithFullName struct {
105-
fullName string
106-
thriftType *metadata.ThriftType
107-
}
108-
109101
var premadeThriftTypesMap = func() map[string]*metadata.ThriftType {
110-
thriftTypesWithFullName := make([]thriftTypeWithFullName, 0)
111-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "string", premadeThriftType_string })
112-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "hack.FieldWrapper", premadeThriftType_hack_FieldWrapper })
113-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "hack.Wrapper", premadeThriftType_hack_Wrapper })
114-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "hack.Adapter", premadeThriftType_hack_Adapter })
115-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "hack.SkipCodegen", premadeThriftType_hack_SkipCodegen })
116-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "hack.Name", premadeThriftType_hack_Name })
117-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "hack.UnionEnumAttributes", premadeThriftType_hack_UnionEnumAttributes })
118-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "hack.StructTrait", premadeThriftType_hack_StructTrait })
119-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "hack.Attributes", premadeThriftType_hack_Attributes })
120-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "hack.StructAsTrait", premadeThriftType_hack_StructAsTrait })
121-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "hack.ModuleInternal", premadeThriftType_hack_ModuleInternal })
122-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "hack.GenerateClientMethodsWithHeaders", premadeThriftType_hack_GenerateClientMethodsWithHeaders })
123-
124-
fbthriftThriftTypesMap := make(map[string]*metadata.ThriftType, len(thriftTypesWithFullName))
125-
for _, value := range thriftTypesWithFullName {
126-
fbthriftThriftTypesMap[value.fullName] = value.thriftType
127-
}
102+
fbthriftThriftTypesMap := make(map[string]*metadata.ThriftType)
103+
fbthriftThriftTypesMap["string"] = premadeThriftType_string
104+
fbthriftThriftTypesMap["hack.FieldWrapper"] = premadeThriftType_hack_FieldWrapper
105+
fbthriftThriftTypesMap["hack.Wrapper"] = premadeThriftType_hack_Wrapper
106+
fbthriftThriftTypesMap["hack.Adapter"] = premadeThriftType_hack_Adapter
107+
fbthriftThriftTypesMap["hack.SkipCodegen"] = premadeThriftType_hack_SkipCodegen
108+
fbthriftThriftTypesMap["hack.Name"] = premadeThriftType_hack_Name
109+
fbthriftThriftTypesMap["hack.UnionEnumAttributes"] = premadeThriftType_hack_UnionEnumAttributes
110+
fbthriftThriftTypesMap["hack.StructTrait"] = premadeThriftType_hack_StructTrait
111+
fbthriftThriftTypesMap["hack.Attributes"] = premadeThriftType_hack_Attributes
112+
fbthriftThriftTypesMap["hack.StructAsTrait"] = premadeThriftType_hack_StructAsTrait
113+
fbthriftThriftTypesMap["hack.ModuleInternal"] = premadeThriftType_hack_ModuleInternal
114+
fbthriftThriftTypesMap["hack.GenerateClientMethodsWithHeaders"] = premadeThriftType_hack_GenerateClientMethodsWithHeaders
128115
return fbthriftThriftTypesMap
129116
}()
130117

third-party/thrift/src/thrift/compiler/test/fixtures/adapter/out/go/gen-go/thrift/annotation/python/metadata.go

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -79,31 +79,18 @@ var (
7979
}()
8080
)
8181

82-
// Helper type to allow us to store Thrift types in a slice at compile time,
83-
// and put them in a map at runtime. See comment at the top of template
84-
// about a compilation limitation that affects map literals.
85-
type thriftTypeWithFullName struct {
86-
fullName string
87-
thriftType *metadata.ThriftType
88-
}
89-
9082
var premadeThriftTypesMap = func() map[string]*metadata.ThriftType {
91-
thriftTypesWithFullName := make([]thriftTypeWithFullName, 0)
92-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "python.Py3Hidden", premadeThriftType_python_Py3Hidden })
93-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "string", premadeThriftType_string })
94-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "python.PyDeprecatedHidden", premadeThriftType_python_PyDeprecatedHidden })
95-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "python.Flags", premadeThriftType_python_Flags })
96-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "python.Name", premadeThriftType_python_Name })
97-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "python.Adapter", premadeThriftType_python_Adapter })
98-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "bool", premadeThriftType_bool })
99-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "python.UseCAPI", premadeThriftType_python_UseCAPI })
100-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "python.Py3EnableCppAdapter", premadeThriftType_python_Py3EnableCppAdapter })
101-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "python.MigrationBlockingAllowInheritance", premadeThriftType_python_MigrationBlockingAllowInheritance })
102-
103-
fbthriftThriftTypesMap := make(map[string]*metadata.ThriftType, len(thriftTypesWithFullName))
104-
for _, value := range thriftTypesWithFullName {
105-
fbthriftThriftTypesMap[value.fullName] = value.thriftType
106-
}
83+
fbthriftThriftTypesMap := make(map[string]*metadata.ThriftType)
84+
fbthriftThriftTypesMap["python.Py3Hidden"] = premadeThriftType_python_Py3Hidden
85+
fbthriftThriftTypesMap["string"] = premadeThriftType_string
86+
fbthriftThriftTypesMap["python.PyDeprecatedHidden"] = premadeThriftType_python_PyDeprecatedHidden
87+
fbthriftThriftTypesMap["python.Flags"] = premadeThriftType_python_Flags
88+
fbthriftThriftTypesMap["python.Name"] = premadeThriftType_python_Name
89+
fbthriftThriftTypesMap["python.Adapter"] = premadeThriftType_python_Adapter
90+
fbthriftThriftTypesMap["bool"] = premadeThriftType_bool
91+
fbthriftThriftTypesMap["python.UseCAPI"] = premadeThriftType_python_UseCAPI
92+
fbthriftThriftTypesMap["python.Py3EnableCppAdapter"] = premadeThriftType_python_Py3EnableCppAdapter
93+
fbthriftThriftTypesMap["python.MigrationBlockingAllowInheritance"] = premadeThriftType_python_MigrationBlockingAllowInheritance
10794
return fbthriftThriftTypesMap
10895
}()
10996

third-party/thrift/src/thrift/compiler/test/fixtures/adapter/out/go/gen-go/thrift/annotation/rust/metadata.go

Lines changed: 17 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -121,37 +121,24 @@ var (
121121
}()
122122
)
123123

124-
// Helper type to allow us to store Thrift types in a slice at compile time,
125-
// and put them in a map at runtime. See comment at the top of template
126-
// about a compilation limitation that affects map literals.
127-
type thriftTypeWithFullName struct {
128-
fullName string
129-
thriftType *metadata.ThriftType
130-
}
131-
132124
var premadeThriftTypesMap = func() map[string]*metadata.ThriftType {
133-
thriftTypesWithFullName := make([]thriftTypeWithFullName, 0)
134-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "string", premadeThriftType_string })
135-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "rust.Name", premadeThriftType_rust_Name })
136-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "rust.Copy", premadeThriftType_rust_Copy })
137-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "rust.RequestContext", premadeThriftType_rust_RequestContext })
138-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "rust.Arc", premadeThriftType_rust_Arc })
139-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "rust.Box", premadeThriftType_rust_Box })
140-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "rust.Exhaustive", premadeThriftType_rust_Exhaustive })
141-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "rust.Ord", premadeThriftType_rust_Ord })
142-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "rust.NewType", premadeThriftType_rust_NewType })
143-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "rust.Type", premadeThriftType_rust_Type })
144-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "bool", premadeThriftType_bool })
145-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "rust.Serde", premadeThriftType_rust_Serde })
146-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "rust.Mod", premadeThriftType_rust_Mod })
147-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "rust.Adapter", premadeThriftType_rust_Adapter })
148-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "rust.Derive", premadeThriftType_rust_Derive })
149-
thriftTypesWithFullName = append(thriftTypesWithFullName, thriftTypeWithFullName{ "rust.ServiceExn", premadeThriftType_rust_ServiceExn })
150-
151-
fbthriftThriftTypesMap := make(map[string]*metadata.ThriftType, len(thriftTypesWithFullName))
152-
for _, value := range thriftTypesWithFullName {
153-
fbthriftThriftTypesMap[value.fullName] = value.thriftType
154-
}
125+
fbthriftThriftTypesMap := make(map[string]*metadata.ThriftType)
126+
fbthriftThriftTypesMap["string"] = premadeThriftType_string
127+
fbthriftThriftTypesMap["rust.Name"] = premadeThriftType_rust_Name
128+
fbthriftThriftTypesMap["rust.Copy"] = premadeThriftType_rust_Copy
129+
fbthriftThriftTypesMap["rust.RequestContext"] = premadeThriftType_rust_RequestContext
130+
fbthriftThriftTypesMap["rust.Arc"] = premadeThriftType_rust_Arc
131+
fbthriftThriftTypesMap["rust.Box"] = premadeThriftType_rust_Box
132+
fbthriftThriftTypesMap["rust.Exhaustive"] = premadeThriftType_rust_Exhaustive
133+
fbthriftThriftTypesMap["rust.Ord"] = premadeThriftType_rust_Ord
134+
fbthriftThriftTypesMap["rust.NewType"] = premadeThriftType_rust_NewType
135+
fbthriftThriftTypesMap["rust.Type"] = premadeThriftType_rust_Type
136+
fbthriftThriftTypesMap["bool"] = premadeThriftType_bool
137+
fbthriftThriftTypesMap["rust.Serde"] = premadeThriftType_rust_Serde
138+
fbthriftThriftTypesMap["rust.Mod"] = premadeThriftType_rust_Mod
139+
fbthriftThriftTypesMap["rust.Adapter"] = premadeThriftType_rust_Adapter
140+
fbthriftThriftTypesMap["rust.Derive"] = premadeThriftType_rust_Derive
141+
fbthriftThriftTypesMap["rust.ServiceExn"] = premadeThriftType_rust_ServiceExn
155142
return fbthriftThriftTypesMap
156143
}()
157144

0 commit comments

Comments
 (0)