File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ impl TypeRef {
27
27
Type :: Flags ( f) => f. repr . mem_size_align ( ) ,
28
28
Type :: Struct ( s) => s. layout ( cache) ,
29
29
Type :: Union ( u) => u. layout ( cache) ,
30
- Type :: Handle { .. } => BuiltinType :: U32 . mem_size_align ( ) ,
30
+ Type :: Handle ( h ) => h . mem_size_align ( ) ,
31
31
Type :: Array { .. } => BuiltinType :: String . mem_size_align ( ) ,
32
32
Type :: Pointer { .. } | Type :: ConstPointer { .. } => BuiltinType :: U32 . mem_size_align ( ) ,
33
33
Type :: Builtin ( b) => b. mem_size_align ( ) ,
@@ -159,6 +159,12 @@ impl Layout for UnionDatatype {
159
159
}
160
160
}
161
161
162
+ impl Layout for HandleDatatype {
163
+ fn mem_size_align ( & self ) -> SizeAlign {
164
+ BuiltinType :: U32 . mem_size_align ( )
165
+ }
166
+ }
167
+
162
168
impl Layout for BuiltinType {
163
169
fn mem_size_align ( & self ) -> SizeAlign {
164
170
match self {
You can’t perform that action at this time.
0 commit comments