File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -339,8 +339,6 @@ impl<T: ?Sized> *const T {
339
339
/// Basic usage:
340
340
///
341
341
/// ```
342
- /// #![feature(ptr_offset_from)]
343
- ///
344
342
/// let a = [0; 5];
345
343
/// let ptr1: *const i32 = &a[1];
346
344
/// let ptr2: *const i32 = &a[3];
@@ -355,8 +353,6 @@ impl<T: ?Sized> *const T {
355
353
/// *Incorrect* usage:
356
354
///
357
355
/// ```rust,no_run
358
- /// #![feature(ptr_offset_from)]
359
- ///
360
356
/// let ptr1 = Box::into_raw(Box::new(0u8)) as *const u8;
361
357
/// let ptr2 = Box::into_raw(Box::new(1u8)) as *const u8;
362
358
/// let diff = (ptr2 as isize).wrapping_sub(ptr1 as isize);
Original file line number Diff line number Diff line change @@ -510,8 +510,6 @@ impl<T: ?Sized> *mut T {
510
510
/// Basic usage:
511
511
///
512
512
/// ```
513
- /// #![feature(ptr_offset_from)]
514
- ///
515
513
/// let mut a = [0; 5];
516
514
/// let ptr1: *mut i32 = &mut a[1];
517
515
/// let ptr2: *mut i32 = &mut a[3];
@@ -526,8 +524,6 @@ impl<T: ?Sized> *mut T {
526
524
/// *Incorrect* usage:
527
525
///
528
526
/// ```rust,no_run
529
- /// #![feature(ptr_offset_from)]
530
- ///
531
527
/// let ptr1 = Box::into_raw(Box::new(0u8));
532
528
/// let ptr2 = Box::into_raw(Box::new(1u8));
533
529
/// let diff = (ptr2 as isize).wrapping_sub(ptr1 as isize);
You can’t perform that action at this time.
0 commit comments