Skip to content

Commit 7ce75c3

Browse files
committed
remove feature gate from tests
1 parent 8b59515 commit 7ce75c3

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

core/src/ptr/const_ptr.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,6 @@ impl<T: ?Sized> *const T {
339339
/// Basic usage:
340340
///
341341
/// ```
342-
/// #![feature(ptr_offset_from)]
343-
///
344342
/// let a = [0; 5];
345343
/// let ptr1: *const i32 = &a[1];
346344
/// let ptr2: *const i32 = &a[3];
@@ -355,8 +353,6 @@ impl<T: ?Sized> *const T {
355353
/// *Incorrect* usage:
356354
///
357355
/// ```rust,no_run
358-
/// #![feature(ptr_offset_from)]
359-
///
360356
/// let ptr1 = Box::into_raw(Box::new(0u8)) as *const u8;
361357
/// let ptr2 = Box::into_raw(Box::new(1u8)) as *const u8;
362358
/// let diff = (ptr2 as isize).wrapping_sub(ptr1 as isize);

core/src/ptr/mut_ptr.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,6 @@ impl<T: ?Sized> *mut T {
510510
/// Basic usage:
511511
///
512512
/// ```
513-
/// #![feature(ptr_offset_from)]
514-
///
515513
/// let mut a = [0; 5];
516514
/// let ptr1: *mut i32 = &mut a[1];
517515
/// let ptr2: *mut i32 = &mut a[3];
@@ -526,8 +524,6 @@ impl<T: ?Sized> *mut T {
526524
/// *Incorrect* usage:
527525
///
528526
/// ```rust,no_run
529-
/// #![feature(ptr_offset_from)]
530-
///
531527
/// let ptr1 = Box::into_raw(Box::new(0u8));
532528
/// let ptr2 = Box::into_raw(Box::new(1u8));
533529
/// let diff = (ptr2 as isize).wrapping_sub(ptr1 as isize);

0 commit comments

Comments
 (0)