SIGN IN SIGN UP
rust-lang / rust UNCLAIMED

Empowering everyone to build reliable and efficient software.

0 0 69 Rust

Rollup merge of #120823 - LegionMammal978:clarify-atomic-align, r=RalfJung

Clarify that atomic and regular integers can differ in alignment

The documentation for atomic integers says that they have the "same in-memory representation" as their underlying integers. This might be misconstrued as implying that they have the same layout. Therefore, clarify that atomic integers' alignment is equal to their size.
M
Matthias Krüger committed
83544703f5050ca80984b1ae9f7ad6f59aab8bac
Committed by GitHub <noreply@github.com> on 2/10/2024, 12:12:29 PM