You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add support for packed types? Types appear to be unpacked right now (which is fine in itself) but it blocks interop with C APIs like epoll_wait.
Example: on x86_64, (0u32, 0u64) is 12 bytes when packed and 16 bytes when unpacked.
I'm ok taking a patch to add packed as a prefix type operator to a record, vector or tuple type. It'll be a bit of a pain to support but does seem to be part of the world we live in.
Activity
brson commentedon Jan 30, 2012
While I do think we should support this in the language, you could probably hack around the problem with unsafe pointers.
Add failing test.
graydon commentedon Feb 15, 2012
I'm ok taking a patch to add
packedas a prefix type operator to a record, vector or tuple type. It'll be a bit of a pain to support but does seem to be part of the world we live in.auto merge of #5816 : dbaupp/rust/rustc-packed-v2, r=nikomatsakis
thestinger commentedon Apr 11, 2013
Fixed by cad2260
enable `__powitf2` (rust-lang#1704)