8000 Remove outdated comment about non-copy unions by ehuss · Pull Request #1872 · rust-lang/reference · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove outdated comment about non-copy unions #1872 8000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

8000
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/type-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,6 @@ struct MyCFields { x: u32, y: u8 }
struct MyDFields;
```

> [!NOTE]
> `union`s with non-`Copy` fields are unstable, see [55149].

r[layout.repr.primitive]
### Primitive representations

Expand Down Expand Up @@ -496,9 +493,6 @@ struct MyVariantC { tag: MyEnumDiscriminant, x: u32, y: u8 }
struct MyVariantD(MyEnumDiscriminant);
```

> [!NOTE]
> `union`s with non-`Copy` fields are unstable, see [55149].

r[layout.repr.primitive-c]
#### Combining primitive representations of enums with fields and `#[repr(C)]`

Expand Down Expand Up @@ -668,7 +662,6 @@ used with any other representation.
[enumerations]: items/enumerations.md
[zero-variant enums]: items/enumerations.md#zero-variant-enums
[undefined behavior]: behavior-considered-undefined.md
[55149]: https://github.com/rust-lang/rust/issues/55149
[`PhantomData<T>`]: special-types-and-traits.md#phantomdatat
[`Rust`]: #the-rust-representation
[`C`]: #the-c-representation
Expand Down
0