Skip to content

Commit 576a492

Browse files
author
Ellen Arteca
committed
rustfmt fix
1 parent 10b6f5b commit 576a492

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

src/bin/miri.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,10 @@ fn main() {
491491
let filename = param.to_string();
492492
if std::path::Path::new(&filename).exists() {
493493
if let Some(other_filename) = miri_config.external_c_so_file {
494-
panic!("-Zmiri-external_so_file external SO file is already set to {}", other_filename.display());
494+
panic!(
495+
"-Zmiri-external_so_file external SO file is already set to {}",
496+
other_filename.display()
497+
);
495498
}
496499
miri_config.external_c_so_file = Some(filename.into());
497500
} else {

tests/pass/external_C/int_c_tests.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,20 @@
44
extern "C" {
55
fn add_one_int(x: i32) -> i32;
66
fn add_int16(x: i16) -> i16;
7-
fn test_stack_spill(a:i32, b:i32, c:i32, d:i32, e:i32, f:i32, g:i32, h:i32, i:i32, j:i32, k:i32, l:i32) -> i32;
7+
fn test_stack_spill(
8+
a: i32,
9+
b: i32,
10+
c: i32,
11+
d: i32,
12+
e: i32,
13+
f: i32,
14+
g: i32,
15+
h: i32,
16+
i: i32,
17+
j: i32,
18+
k: i32,
19+
l: i32,
20+
) -> i32;
821
fn add_short_to_long(x: i16, y: i64) -> i64;
922
fn get_unsigned_int() -> u32;
1023
}

tests/pass/external_C/print_from_c.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extern "C" {
77

88
fn main() {
99
unsafe {
10-
// test void function that prints from C -- call it twice
10+
// test void function that prints from C -- call it twice
1111
printer();
1212
printer();
1313
}

0 commit comments

Comments
 (0)