diff options
| author | bors <bors@rust-lang.org> | 2019-06-09 23:50:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-06-09 23:50:04 +0000 |
| commit | 61a60ce7d369b54e209003e9e92bf90d6f5e5d4b (patch) | |
| tree | 0b606c3a8160219d9b02f75fdeb656c3a3c7a0e2 /src/test/incremental/thinlto | |
| parent | 400b409efc4975a082185c5a74412572e49dfd98 (diff) | |
| parent | c25e3d2be5825463cf63c518854b583fbc9e8386 (diff) | |
| download | rust-61a60ce7d369b54e209003e9e92bf90d6f5e5d4b.tar.gz rust-61a60ce7d369b54e209003e9e92bf90d6f5e5d4b.zip | |
Auto merge of #61229 - Centril:stabilize-repr_align_enum, r=nagisa
Stabilize #![feature(repr_align_enum)] in Rust 1.37.0
On an `enum` item, you may now write:
```rust
#[repr(align(X))]
enum Foo {
// ...
}
```
This has equivalent effects to first defining:
```rust
#[repr(align(X))]
struct AlignX<T>(T);
```
and then using `AlignX<Foo>` in `Foo`'s stead.
r? @nagisa
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
