@@ -357,6 +357,8 @@ impl AtomicBool {
357
357
/// duration of lifetime `'a`. Most use cases should be able to follow this guideline.
358
358
/// * This requirement is also trivially satisfied if all accesses (atomic or not) are done
359
359
/// from the same thread.
360
+ /// * This method must not be used to perform overlapping or mixed-size atomic
361
+ /// accesses, as these are not supported by the memory model.
360
362
///
361
363
/// [valid]: crate::ptr#safety
362
364
#[ stable( feature = "atomic_from_ptr" , since = "CURRENT_RUSTC_VERSION" ) ]
@@ -1159,7 +1161,7 @@ impl<T> AtomicPtr<T> {
1159
1161
/// duration of lifetime `'a`. Most use cases should be able to follow this guideline.
1160
1162
/// * This requirement is also trivially satisfied if all accesses (atomic or not) are done
1161
1163
/// from the same thread.
1162
- /// * This method should not be used to create overlapping or mixed-size atomic accesses, as
1164
+ /// * This method must not be used to perform overlapping or mixed-size atomic accesses, as
1163
1165
/// these are not supported by the memory model.
1164
1166
///
1165
1167
/// [valid]: crate::ptr#safety
@@ -2142,7 +2144,7 @@ macro_rules! atomic_int {
2142
2144
/// this guideline.
2143
2145
/// * This requirement is also trivially satisfied if all accesses (atomic or not) are
2144
2146
/// done from the same thread.
2145
- /// * This method should not be used to create overlapping or mixed-size atomic
2147
+ /// * This method must not be used to perform overlapping or mixed-size atomic
2146
2148
/// accesses, as these are not supported by the memory model.
2147
2149
///
2148
2150
/// [valid]: crate::ptr#safety
0 commit comments