We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 862d6f4 commit 9eaa65aCopy full SHA for 9eaa65a
src/type-layout.md
@@ -549,13 +549,7 @@ The `align` modifier can also be applied on an `enum`.
549
When it is, the effect on the `enum`'s alignment is the same as if the `enum`
550
was wrapped in a newtype `struct` with the same `align` modifier.
551
552
-<div class="warning">
553
-
554
-***Warning:*** Dereferencing an unaligned pointer is [undefined behavior] and
555
-it is possible to [safely create unaligned pointers to `packed` fields][27060].
556
-Like all ways to create undefined behavior in safe Rust, this is a bug.
557
558
-</div>
+Dereferencing an unaligned pointer is [undefined behavior].
559
560
### The `transparent` Representation
561
0 commit comments