Skip to content

Commit a433ea2

Browse files
committed
Update tests.
1 parent cb26fa0 commit a433ea2

3 files changed

+3
-6
lines changed

tests/ui/lint/cli-lint-override.forbid_warn.stderr

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ error: extern declarations without an explicit ABI are deprecated
22
--> $DIR/cli-lint-override.rs:12:1
33
|
44
LL | extern fn foo() {}
5-
| ^^^^^^^^^^^^^^^ ABI should be specified here
5+
| ^^^^^^ help: explicitly specify the C ABI: `extern "C"`
66
|
7-
= help: the default ABI is C
87
= note: requested on the command line with `-F missing-abi`
98

109
error: aborting due to 1 previous error

tests/ui/lint/cli-lint-override.force_warn_deny.stderr

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ warning: extern declarations without an explicit ABI are deprecated
22
--> $DIR/cli-lint-override.rs:12:1
33
|
44
LL | extern fn foo() {}
5-
| ^^^^^^^^^^^^^^^ ABI should be specified here
5+
| ^^^^^^ help: explicitly specify the C ABI: `extern "C"`
66
|
7-
= help: the default ABI is C
87
= note: requested on the command line with `--force-warn missing-abi`
98

109
warning: 1 warning emitted

tests/ui/lint/cli-lint-override.warn_deny.stderr

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ error: extern declarations without an explicit ABI are deprecated
22
--> $DIR/cli-lint-override.rs:12:1
33
|
44
LL | extern fn foo() {}
5-
| ^^^^^^^^^^^^^^^ ABI should be specified here
5+
| ^^^^^^ help: explicitly specify the C ABI: `extern "C"`
66
|
7-
= help: the default ABI is C
87
= note: requested on the command line with `-D missing-abi`
98

109
error: aborting due to 1 previous error

0 commit comments

Comments
 (0)