Skip to content

Commit 9782b7b

Browse files
committed
rustup
1 parent 86911fd commit 9782b7b

File tree

8 files changed

+9
-11
lines changed

8 files changed

+9
-11
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6077b7cda466afa2b75a62b232ab46dbeb148bcb
1+
db41351753df840773ca628d8daa040e95d00eef

src/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
631631

632632
// Ensure that the access is within bounds.
633633
assert!(op_place.layout.size >= offset + layout.size);
634-
let value_place = op_place.offset(offset, MemPlaceMeta::None, layout, this)?;
634+
let value_place = op_place.offset(offset, layout, this)?;
635635
Ok(value_place)
636636
}
637637

src/shims/backtrace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
105105
let offset = ptr_layout.size * i.try_into().unwrap();
106106

107107
let op_place =
108-
buf_place.offset(offset, MemPlaceMeta::None, ptr_layout, this)?;
108+
buf_place.offset(offset, ptr_layout, this)?;
109109

110110
this.write_pointer(ptr, &op_place.into())?;
111111
}

src/shims/windows/foreign_items.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
154154
// Set page size.
155155
let page_size = system_info.offset(
156156
field_offsets[2],
157-
MemPlaceMeta::None,
158157
dword_layout,
159158
&this.tcx,
160159
)?;
@@ -165,7 +164,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
165164
// Set number of processors.
166165
let num_cpus = system_info.offset(
167166
field_offsets[6],
168-
MemPlaceMeta::None,
169167
dword_layout,
170168
&this.tcx,
171169
)?;

tests/fail/stacked_borrows/issue-miri-1050-1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
fn main() {
44
unsafe {
55
let ptr = Box::into_raw(Box::new(0u16));
6-
Box::from_raw(ptr as *mut u32);
6+
drop(Box::from_raw(ptr as *mut u32));
77
}
88
}

tests/fail/stacked_borrows/issue-miri-1050-1.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ LL | Box(unsafe { Unique::new_unchecked(raw) }, alloc)
1212
note: inside `main` at $DIR/issue-miri-1050-1.rs:LL:CC
1313
--> $DIR/issue-miri-1050-1.rs:LL:CC
1414
|
15-
LL | Box::from_raw(ptr as *mut u32);
16-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15+
LL | drop(Box::from_raw(ptr as *mut u32));
16+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1717

1818
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
1919

tests/fail/stacked_borrows/issue-miri-1050-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ use std::ptr::NonNull;
44
fn main() {
55
unsafe {
66
let ptr = NonNull::<i32>::dangling();
7-
Box::from_raw(ptr.as_ptr());
7+
drop(Box::from_raw(ptr.as_ptr()));
88
}
99
}

tests/fail/stacked_borrows/issue-miri-1050-2.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ LL | Box(unsafe { Unique::new_unchecked(raw) }, alloc)
1212
note: inside `main` at $DIR/issue-miri-1050-2.rs:LL:CC
1313
--> $DIR/issue-miri-1050-2.rs:LL:CC
1414
|
15-
LL | Box::from_raw(ptr.as_ptr());
16-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
15+
LL | drop(Box::from_raw(ptr.as_ptr()));
16+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1717

1818
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
1919

0 commit comments

Comments
 (0)