Skip to content

Commit af6c9d4

Browse files
authored
Merge pull request rust-lang#7 from J-ZhengLi/dev_stable
fix test fail after dev fmt of [`implicit_abi`]
2 parents 38ab3a3 + 33ddd19 commit af6c9d4

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

tests/ui/implicit_abi.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use std::ffi::{c_char, c_void};
77
#[repr(C)]
88
pub struct External(i8);
99

10+
#[rustfmt::skip]
1011
extern "C" {
1112
fn foo();
1213
fn bar(a: u8, b: i32) -> u64;

tests/ui/implicit_abi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use std::ffi::{c_char, c_void};
77
#[repr(C)]
88
pub struct External(i8);
99

10+
#[rustfmt::skip]
1011
extern {
1112
fn foo();
1213
fn bar(a: u8, b: i32) -> u64;

tests/ui/implicit_abi.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
error: missing ABI label on extern block
2-
--> $DIR/implicit_abi.rs:10:1
2+
--> $DIR/implicit_abi.rs:11:1
33
|
44
LL | extern {
55
| ^^^^^^ help: explicitly states ABI instead: `extern "C"`
66
|
77
= note: `-D clippy::implicit-abi` implied by `-D warnings`
88

99
error: missing ABI label on extern block
10-
--> $DIR/implicit_abi.rs:22:1
10+
--> $DIR/implicit_abi.rs:23:1
1111
|
1212
LL | extern
1313
| ^^^^^^ help: explicitly states ABI instead: `extern "C"`
1414

1515
error: missing ABI label on extern block
16-
--> $DIR/implicit_abi.rs:28:1
16+
--> $DIR/implicit_abi.rs:29:1
1717
|
1818
LL | extern { fn my_c_fn(a: i8) -> c_void; }
1919
| ^^^^^^ help: explicitly states ABI instead: `extern "C"`

0 commit comments

Comments
 (0)