Skip to content

Commit b154e03

Browse files
committed
try to manually bless windows test output
1 parent fab11f6 commit b154e03

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

tests/ui/linkage-attr/raw-dylib/windows/unsupported-abi.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
//@ compile-flags: --crate-type lib --emit link
44
#[link(name = "foo", kind = "raw-dylib")]
55
extern "stdcall" {
6+
//~^ WARN: calling convention not supported on this target
7+
//~| WARN: previously accepted
68
fn f(x: i32);
79
//~^ ERROR ABI not supported by `#[link(kind = "raw-dylib")]` on this architecture
810
}
Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,41 @@
1+
warning: use of calling convention not supported on this target
2+
--> $DIR/unsupported-abi.rs:5:1
3+
|
4+
LL | / extern "stdcall" {
5+
LL | |
6+
LL | |
7+
LL | | fn f(x: i32);
8+
LL | |
9+
LL | | }
10+
| |_^
11+
|
12+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
13+
= note: for more information, see issue #137018 <https://github.com/rust-lang/rust/issues/137018>
14+
= help: if you need `extern "stdcall"` on win32 and `extern "C"` everywhere else, use `extern "system"`
15+
= note: `#[warn(unsupported_calling_conventions)]` on by default
16+
117
error: ABI not supported by `#[link(kind = "raw-dylib")]` on this architecture
2-
--> $DIR/unsupported-abi.rs:6:5
18+
--> $DIR/unsupported-abi.rs:8:5
319
|
420
LL | fn f(x: i32);
521
| ^^^^^^^^^^^^^
622

7-
error: aborting due to 1 previous error
23+
error: aborting due to 1 previous error; 1 warning emitted
24+
25+
Future incompatibility report: Future breakage diagnostic:
26+
warning: use of calling convention not supported on this target
27+
--> $DIR/unsupported-abi.rs:5:1
28+
|
29+
LL | / extern "stdcall" {
30+
LL | |
31+
LL | |
32+
LL | | fn f(x: i32);
33+
LL | |
34+
LL | | }
35+
| |_^
36+
|
37+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
38+
= note: for more information, see issue #137018 <https://github.com/rust-lang/rust/issues/137018>
39+
= help: if you need `extern "stdcall"` on win32 and `extern "C"` everywhere else, use `extern "system"`
40+
= note: `#[warn(unsupported_calling_conventions)]` on by default
841

0 commit comments

Comments
 (0)