]> git.lizzy.rs Git - rust.git/commitdiff
Add tracking issue for offset_to
authorAmanieu d'Antras <amanieu@gmail.com>
Wed, 5 Apr 2017 06:45:44 +0000 (07:45 +0100)
committerAmanieu d'Antras <amanieu@gmail.com>
Wed, 5 Apr 2017 06:45:44 +0000 (07:45 +0100)
src/doc/unstable-book/src/offset-to.md
src/libcore/ptr.rs

index 376f3ff5d2199ccc226e5bd13f3d48a8a859de31..03d990eb4ae970421d5bdea89b0d6c76ba71076a 100644 (file)
@@ -1,7 +1,7 @@
 # `offset_to`
 
-The tracking issue for this feature is: [#0]
+The tracking issue for this feature is: [#41079]
 
-[#0]: https://github.com/rust-lang/rust/issues/0
+[#41079]: https://github.com/rust-lang/rust/issues/41079
 
 ------------------------
index 6bcce76af04e39e9a91a36062ff8729a3a5ffcd4..04480fc5d31da2e53d5479850fbf0ce9a560fcdb 100644 (file)
@@ -527,7 +527,7 @@ pub fn wrapping_offset(self, count: isize) -> *const T where T: Sized {
     ///     assert_eq!(unsafe { ptr2.offset(-2) }, ptr1);
     /// }
     /// ```
-    #[unstable(feature = "offset_to", issue = "0")]
+    #[unstable(feature = "offset_to", issue = "41079")]
     #[inline]
     pub fn offset_to(self, other: *const T) -> Option<isize> where T: Sized {
         let size = mem::size_of::<T>();
@@ -718,7 +718,7 @@ pub unsafe fn as_mut<'a>(self) -> Option<&'a mut T> where T: Sized {
     ///     assert_eq!(unsafe { ptr2.offset(-2) }, ptr1);
     /// }
     /// ```
-    #[unstable(feature = "offset_to", issue = "0")]
+    #[unstable(feature = "offset_to", issue = "41079")]
     #[inline]
     pub fn offset_to(self, other: *const T) -> Option<isize> where T: Sized {
         let size = mem::size_of::<T>();