From 4bc622784d10cbef2eb7a5d8ba2891fe75767887 Mon Sep 17 00:00:00 2001
From: Mazdak Farrokhzad <twingoow@gmail.com>
Date: Mon, 10 Jun 2019 04:55:19 +0200
Subject: [PATCH] Describe `#[repr(align(x))]` semantics on `enum`s

---
 src/type-layout.md | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/type-layout.md b/src/type-layout.md
index 84c643f96..fe611559f 100644
--- a/src/type-layout.md
+++ b/src/type-layout.md
@@ -322,6 +322,10 @@ The `align` and `packed` modifiers cannot be applied on the same type and a
 `packed` type cannot transitively contain another `align`ed type. `align` and
 `packed` may only be applied to the [default] and [`C`] representations.
 
+The `align` modifier can also be applied on an `enum`.
+When it is, the effect on the `enum`'s alignment is the same as if the `enum`
+was wrapped in a newtype `struct` with the same `align` modifier.
+
 <div class="warning">
 
 ***Warning:*** Dereferencing an unaligned pointer is [undefined behavior] and