Skip to content

Commit 46f53c8

Browse files
author
The Miri Conjob Bot
committed
fmt
1 parent 078f228 commit 46f53c8

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/tools/miri/tests/fail/function_pointers/abi_mismatch_array_vs_struct.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
// Some targets treat arrays and structs very differently. We would probably catch that on those
44
// targets since we check the `PassMode`; here we ensure that we catch it on *all* targets
55
// (in particular, on x86-64 the pass mode is `Indirect` for both of these).
6-
struct S(#[allow(dead_code)] i32, #[allow(dead_code)] i32, #[allow(dead_code)] i32, #[allow(dead_code)] i32);
6+
struct S(
7+
#[allow(dead_code)] i32,
8+
#[allow(dead_code)] i32,
9+
#[allow(dead_code)] i32,
10+
#[allow(dead_code)] i32,
11+
);
712
type A = [i32; 4];
813

914
fn main() {

src/tools/miri/tests/pass/stacked-borrows/non_scalar_field_retagging.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
//@compile-flags: -Zmiri-retag-fields=scalar
22

3-
struct Newtype<'a>(#[allow(dead_code)] &'a mut i32, #[allow(dead_code)] i32, #[allow(dead_code)] i32);
3+
struct Newtype<'a>(
4+
#[allow(dead_code)] &'a mut i32,
5+
#[allow(dead_code)] i32,
6+
#[allow(dead_code)] i32,
7+
);
48

59
fn dealloc_while_running(_n: Newtype<'_>, dealloc: impl FnOnce()) {
610
dealloc();

0 commit comments

Comments
 (0)