remove confusing remarks about mixed volatile and non-volatile accesses
This commit is contained in:
parent
caef1e833f
commit
b9be68ce2e
@ -810,9 +810,6 @@ pub unsafe fn write_unaligned<T>(dst: *mut T, src: T) {
|
||||
/// to not be elided or reordered by the compiler across other volatile
|
||||
/// operations.
|
||||
///
|
||||
/// Memory accessed with `read_volatile` or [`write_volatile`] should not be
|
||||
/// accessed with non-volatile operations.
|
||||
///
|
||||
/// [`write_volatile`]: ./fn.write_volatile.html
|
||||
///
|
||||
/// # Notes
|
||||
@ -881,9 +878,6 @@ pub unsafe fn read_volatile<T>(src: *const T) -> T {
|
||||
/// to not be elided or reordered by the compiler across other volatile
|
||||
/// operations.
|
||||
///
|
||||
/// Memory accessed with [`read_volatile`] or `write_volatile` should not be
|
||||
/// accessed with non-volatile operations.
|
||||
///
|
||||
/// `write_volatile` does not drop the contents of `dst`. This is safe, but it
|
||||
/// could leak allocations or resources, so care should be taken not to overwrite
|
||||
/// an object that should be dropped.
|
||||
|
Loading…
Reference in New Issue
Block a user