Add tracking issue for offset_to

This commit is contained in:
Amanieu d'Antras 2017-04-05 07:45:44 +01:00
parent 7b89bd7cca
commit 1f70247446
2 changed files with 4 additions and 4 deletions

View 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
------------------------

View File

@ -527,7 +527,7 @@ impl<T: ?Sized> *const T {
/// 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 @@ impl<T: ?Sized> *mut T {
/// 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>();