about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorWesley Wiser <wwiser@gmail.com>2016-11-05 19:30:56 -0400
committerWesley Wiser <wwiser@gmail.com>2016-11-08 22:03:23 -0500
commita3f75fb07222c3c6d7efe0c4252f413deb489246 (patch)
treedd21074ea98b6d41304eb1bee28bd3fc28534396 /src/libcore
parentbc4fc6567c892b4bf468175445388dd3e2faf480 (diff)
downloadrust-a3f75fb07222c3c6d7efe0c4252f413deb489246.tar.gz
rust-a3f75fb07222c3c6d7efe0c4252f413deb489246.zip
Add documentation for the `volatile_read` and `volatile_write` intrinsics
Part of #34338
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/intrinsics.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs
index ea5544221c9..7f37b744148 100644
--- a/src/libcore/intrinsics.rs
+++ b/src/libcore/intrinsics.rs
@@ -1027,8 +1027,12 @@ extern "rust-intrinsic" {
     pub fn volatile_set_memory<T>(dst: *mut T, val: u8, count: usize);
 
     /// Perform a volatile load from the `src` pointer.
+    /// The stabilized version of this intrinsic is
+    /// [`std::ptr::read_volatile`](../../std/ptr/fn.read_volatile.html).
     pub fn volatile_load<T>(src: *const T) -> T;
     /// Perform a volatile store to the `dst` pointer.
+    /// The stabilized version of this intrinsic is
+    /// [`std::ptr::write_volatile`](../../std/ptr/fn.write_volatile.html).
     pub fn volatile_store<T>(dst: *mut T, val: T);
 
     /// Returns the square root of an `f32`