Files
rust/library/core/src
Matthias Krüger a9ed9fb943 Rollup merge of #121943 - joshlf:patch-11, r=scottmcm
Clarify atomic bit validity

The previous definition used the phrase "representation", which is ambiguous given the current state of memory model nomenclature in Rust. For integer types and for `AtomicPtr<T>`, the new wording clarifies that size and bit validity are guaranteed to match the corresponding native integer type/`*mut T`. For `AtomicBool`, the new wording clarifies that size, alignment, and bit validity are guaranteed to match `bool`.

Note that we use the phrase "size and alignment" rather than "layout" since the latter term also implies that the field types are the same. This isn't true - `AtomicXxx` doesn't store an `xxx`, but rather an `UnsafeCell<xxx>`. This distinction is important for some `unsafe` code, which needs to reason about the presence or absence of interior mutability in order to ensure that their code is sound (see e.g. https://github.com/google/zerocopy/issues/251).
2024-03-27 23:27:22 +01:00
..
2024-03-19 15:27:11 +01:00
2024-02-13 12:04:44 +01:00
2024-03-20 08:49:13 -04:00
2024-03-20 08:49:13 -04:00
2024-03-10 09:48:56 +01:00
2024-02-25 14:09:30 +00:00
2024-03-07 07:49:22 +01:00
2024-02-15 08:09:42 +01:00
2023-12-10 10:56:22 +08:00
2024-03-02 16:03:23 +08:00
2024-02-15 08:09:42 +01:00
2024-03-24 11:27:34 +01:00
2024-03-23 16:51:40 +08:00