Skip to content

Commit

Permalink
Auto merge of #116205 - WaffleLapkin:stabilize_pointer_byte_offsets, …
Browse files Browse the repository at this point in the history
…r=dtolnay

Stabilize `[const_]pointer_byte_offsets`

Closes #96283
Awaiting FCP completion: rust-lang/rust#96283 (comment)

r? libs-api
  • Loading branch information
bors committed Oct 27, 2023
2 parents ad66ef1 + ca04ddf commit 1708b8e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions tests/fail/dangling_pointers/out_of_bounds_read.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(pointer_byte_offsets)]

fn main() {
let v: Vec<u16> = vec![1, 2];
// This read is also misaligned. We make sure that the OOB message has priority.
Expand Down
2 changes: 0 additions & 2 deletions tests/fail/dangling_pointers/out_of_bounds_write.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(pointer_byte_offsets)]

fn main() {
let mut v: Vec<u16> = vec![1, 2];
// This read is also misaligned. We make sure that the OOB message has priority.
Expand Down
1 change: 0 additions & 1 deletion tests/pass/provenance.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//@revisions: stack tree
//@[tree]compile-flags: -Zmiri-tree-borrows
#![feature(strict_provenance)]
#![feature(pointer_byte_offsets)]
use std::{mem, ptr};

const PTR_SIZE: usize = mem::size_of::<&i32>();
Expand Down

0 comments on commit 1708b8e

Please sign in to comment.