File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 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) {
810810/// to not be elided or reordered by the compiler across other volatile
811811/// operations.
812812///
813- /// Memory accessed with `read_volatile` or [`write_volatile`] should not be
814- /// accessed with non-volatile operations.
815- ///
816813/// [`write_volatile`]: ./fn.write_volatile.html
817814///
818815/// # Notes
@@ -881,9 +878,6 @@ pub unsafe fn read_volatile<T>(src: *const T) -> T {
881878/// to not be elided or reordered by the compiler across other volatile
882879/// operations.
883880///
884- /// Memory accessed with [`read_volatile`] or `write_volatile` should not be
885- /// accessed with non-volatile operations.
886- ///
887881/// `write_volatile` does not drop the contents of `dst`. This is safe, but it
888882/// could leak allocations or resources, so care should be taken not to overwrite
889883/// an object that should be dropped.
You can’t perform that action at this time.
0 commit comments