Skip to content

Commit 964a576

Browse files
author
The Miri Conjob Bot
committed
fmt
1 parent c232e94 commit 964a576

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/tools/miri/tests/fail/issue-miri-3288-ice-symbolic-alignment-extern-static.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ extern "C" {
44
static _dispatch_queue_attr_concurrent: [u8; 0];
55
}
66

7-
static DISPATCH_QUEUE_CONCURRENT: &'static [u8; 0] =
8-
unsafe { &_dispatch_queue_attr_concurrent };
7+
static DISPATCH_QUEUE_CONCURRENT: &'static [u8; 0] = unsafe { &_dispatch_queue_attr_concurrent };
98

109
fn main() {
1110
let _val = *DISPATCH_QUEUE_CONCURRENT; //~ERROR: is not supported

src/tools/miri/tests/pass/align_offset_symbolic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ fn vtable() {
113113

114114
let ptr: &dyn Send = &0;
115115
let parts: (*const (), *const u8) = unsafe { mem::transmute(ptr) };
116-
let vtable = parts.1 ;
116+
let vtable = parts.1;
117117
let offset = vtable.align_offset(mem::align_of::<TWOPTR>());
118118
let _vtable_aligned = vtable.wrapping_add(offset) as *const [TWOPTR; 0];
119119
// FIXME: we can't actually do the access since vtable pointers act like zero-sized allocations.

0 commit comments

Comments
 (0)