File tree 1 file changed +0
-6
lines changed
1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -810,9 +810,6 @@ pub unsafe fn write_unaligned<T>(dst: *mut T, src: T) {
810
810
/// to not be elided or reordered by the compiler across other volatile
811
811
/// operations.
812
812
///
813
- /// Memory accessed with `read_volatile` or [`write_volatile`] should not be
814
- /// accessed with non-volatile operations.
815
- ///
816
813
/// [`write_volatile`]: ./fn.write_volatile.html
817
814
///
818
815
/// # Notes
@@ -881,9 +878,6 @@ pub unsafe fn read_volatile<T>(src: *const T) -> T {
881
878
/// to not be elided or reordered by the compiler across other volatile
882
879
/// operations.
883
880
///
884
- /// Memory accessed with [`read_volatile`] or `write_volatile` should not be
885
- /// accessed with non-volatile operations.
886
- ///
887
881
/// `write_volatile` does not drop the contents of `dst`. This is safe, but it
888
882
/// could leak allocations or resources, so care should be taken not to overwrite
889
883
/// an object that should be dropped.
You can’t perform that action at this time.
0 commit comments