mozilla/rust — pull request #5816 by dbaupp (2013-04-10 13:47:51+00:00)
Title: Add #[packed] attribute to create packed structs

#5758 take 2.

This adds a `#[packed]` attribute for structs, like GCC's `__attribute__((packed))`, e.g.

```rust
#[packed]
struct Size5 {
a: u8,
b: u32
}
```

It works on normal and tuple structs, but is (silently) ignored on enums.

Closes #1704.