Skip to content

Commit 63becf3

Browse files
authored
Rollup merge of #137121 - bend-n:master, r=Noratrieb
stabilize `(const_)ptr_sub_ptr` Tracking issue: #95892 Closes #95892 FCP Completed: rust-lang/rust#95892 (comment) r? ````@Noratrieb````
2 parents 51c40b5 + fcfefd8 commit 63becf3

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

tests/fail/intrinsics/ptr_offset_from_unsigned_neg.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
//@normalize-stderr-test: "\d+ < \d+" -> "$$ADDR < $$ADDR"
2-
#![feature(ptr_sub_ptr)]
3-
42
fn main() {
53
let arr = [0u8; 8];
64
let ptr1 = arr.as_ptr();

tests/pass/ptr_offset.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@compile-flags: -Zmiri-permissive-provenance
2-
#![feature(ptr_sub_ptr)]
32
use std::{mem, ptr};
43

54
fn main() {

0 commit comments

Comments
 (0)