@@ -11,6 +11,7 @@ use std::collections::BTreeMap;
11
11
use std:: path:: PathBuf ;
12
12
use std:: sync:: Arc ;
13
13
14
+ use allocative:: Allocative ;
14
15
use anyhow:: anyhow;
15
16
use anyhow:: bail;
16
17
use anyhow:: ensure;
@@ -74,7 +75,8 @@ fn eval_and_freeze_module(
74
75
slotmap:: new_key_type! {
75
76
/// TypeId and TypeRegistry exist to store unique references to complex types.
76
77
/// These are types that end up getting codegenned, not primitives.
77
- #[ derive( ProvidesStaticType , NoSerialize ) ]
78
+ #[ derive( ProvidesStaticType , NoSerialize , Allocative ) ]
79
+ #[ allocative( skip) ]
78
80
struct TypeId ;
79
81
}
80
82
impl std:: fmt:: Display for TypeId {
@@ -103,9 +105,10 @@ impl TypeRegistry {
103
105
}
104
106
}
105
107
106
- #[ derive( Debug , Clone , Display , ProvidesStaticType , NoSerialize ) ]
108
+ #[ derive( Debug , Clone , Display , ProvidesStaticType , NoSerialize , Allocative ) ]
107
109
#[ display( fmt = "{:?}" , self ) ]
108
110
#[ repr( transparent) ]
111
+ #[ allocative( skip) ]
109
112
struct StarlarkType ( Arc < ir:: Type > ) ;
110
113
starlark_simple_value ! ( StarlarkType ) ;
111
114
impl < ' v > StarlarkValue < ' v > for StarlarkType {
@@ -156,9 +159,10 @@ impl<'v> TryToField for Value<'v> {
156
159
}
157
160
}
158
161
159
- #[ derive( Debug , Clone , Display , ProvidesStaticType , NoSerialize ) ]
162
+ #[ derive( Debug , Clone , Display , ProvidesStaticType , NoSerialize , Allocative ) ]
160
163
#[ display( fmt = "{:?}" , self ) ]
161
164
#[ repr( transparent) ]
165
+ #[ allocative( skip) ]
162
166
struct StarlarkField ( ir:: Field ) ;
163
167
starlark_simple_value ! ( StarlarkField ) ;
164
168
impl < ' v > StarlarkValue < ' v > for StarlarkField {
0 commit comments