Skip to content

Commit 60bf141

Browse files
authored
threads: ignore sharedness for creation of TypeInfo (#1744)
`TypeInfo` currently tracks a type's size and whether it borrows anything. I originally had wondered whether it should also track sharedness, but I'm convincing myself this is unnecessary: - being shared or not shouldn't change the size - being shared or not doesn't change whether the type borrows This change removes the TODO.
1 parent 300931d commit 60bf141

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

crates/wasmparser/src/validator/types.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ impl TypeData for SubType {
298298
CompositeInnerType::Array(_) => 2,
299299
CompositeInnerType::Struct(ty) => 1 + 2 * ty.fields.len() as u32,
300300
};
301-
// TODO: handle shared?
302301
TypeInfo::core(size)
303302
}
304303
}

0 commit comments

Comments
 (0)