You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #129935 - RalfJung:unsupported_calling_conventions, r=
make unsupported_calling_conventions a hard error
This has been a future-compat lint (not shown in dependencies) since Rust 1.55, released 3 years ago. Hopefully that was enough time so this can be made a hard error now. Given that long timeframe, I think it's justified to skip the "show in dependencies" stage. There were [not many crates hitting this](#86231 (comment)) even when the PR was landed.
This should get cratered, and I assume then it needs a t-compiler FCP.
Fixes#88397
Copy file name to clipboardexpand all lines: tests/ui/abi/unsupported.aarch64.stderr
+2-6
Original file line number
Diff line number
Diff line change
@@ -40,16 +40,12 @@ error[E0570]: `"thiscall"` is not a supported ABI for the current target
40
40
LL | extern "thiscall" fn thiscall() {}
41
41
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
42
43
-
warning: use of calling convention not supported on this target
43
+
error[E0570]: `"stdcall"` is not a supported ABI for the current target
44
44
--> $DIR/unsupported.rs:56:1
45
45
|
46
46
LL | extern "stdcall" fn stdcall() {}
47
47
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48
-
|
49
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
50
-
= note: for more information, see issue #87678 <https://github.com/rust-lang/rust/issues/87678>
51
-
= note: `#[warn(unsupported_calling_conventions)]` on by default
52
48
53
-
error: aborting due to 7 previous errors; 1 warning emitted
49
+
error: aborting due to 8 previous errors
54
50
55
51
For more information about this error, try `rustc --explain E0570`.
Copy file name to clipboardexpand all lines: tests/ui/abi/unsupported.arm.stderr
+2-6
Original file line number
Diff line number
Diff line change
@@ -34,16 +34,12 @@ error[E0570]: `"thiscall"` is not a supported ABI for the current target
34
34
LL | extern "thiscall" fn thiscall() {}
35
35
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36
36
37
-
warning: use of calling convention not supported on this target
37
+
error[E0570]: `"stdcall"` is not a supported ABI for the current target
38
38
--> $DIR/unsupported.rs:56:1
39
39
|
40
40
LL | extern "stdcall" fn stdcall() {}
41
41
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
-
|
43
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
44
-
= note: for more information, see issue #87678 <https://github.com/rust-lang/rust/issues/87678>
45
-
= note: `#[warn(unsupported_calling_conventions)]` on by default
46
42
47
-
error: aborting due to 6 previous errors; 1 warning emitted
43
+
error: aborting due to 7 previous errors
48
44
49
45
For more information about this error, try `rustc --explain E0570`.
Copy file name to clipboardexpand all lines: tests/ui/abi/unsupported.riscv32.stderr
+2-6
Original file line number
Diff line number
Diff line change
@@ -34,16 +34,12 @@ error[E0570]: `"thiscall"` is not a supported ABI for the current target
34
34
LL | extern "thiscall" fn thiscall() {}
35
35
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36
36
37
-
warning: use of calling convention not supported on this target
37
+
error[E0570]: `"stdcall"` is not a supported ABI for the current target
38
38
--> $DIR/unsupported.rs:56:1
39
39
|
40
40
LL | extern "stdcall" fn stdcall() {}
41
41
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
-
|
43
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
44
-
= note: for more information, see issue #87678 <https://github.com/rust-lang/rust/issues/87678>
45
-
= note: `#[warn(unsupported_calling_conventions)]` on by default
46
42
47
-
error: aborting due to 6 previous errors; 1 warning emitted
43
+
error: aborting due to 7 previous errors
48
44
49
45
For more information about this error, try `rustc --explain E0570`.
Copy file name to clipboardexpand all lines: tests/ui/abi/unsupported.riscv64.stderr
+2-6
Original file line number
Diff line number
Diff line change
@@ -34,16 +34,12 @@ error[E0570]: `"thiscall"` is not a supported ABI for the current target
34
34
LL | extern "thiscall" fn thiscall() {}
35
35
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36
36
37
-
warning: use of calling convention not supported on this target
37
+
error[E0570]: `"stdcall"` is not a supported ABI for the current target
38
38
--> $DIR/unsupported.rs:56:1
39
39
|
40
40
LL | extern "stdcall" fn stdcall() {}
41
41
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
-
|
43
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
44
-
= note: for more information, see issue #87678 <https://github.com/rust-lang/rust/issues/87678>
45
-
= note: `#[warn(unsupported_calling_conventions)]` on by default
46
42
47
-
error: aborting due to 6 previous errors; 1 warning emitted
43
+
error: aborting due to 7 previous errors
48
44
49
45
For more information about this error, try `rustc --explain E0570`.
Copy file name to clipboardexpand all lines: tests/ui/abi/unsupported.x64.stderr
+2-6
Original file line number
Diff line number
Diff line change
@@ -34,16 +34,12 @@ error[E0570]: `"thiscall"` is not a supported ABI for the current target
34
34
LL | extern "thiscall" fn thiscall() {}
35
35
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36
36
37
-
warning: use of calling convention not supported on this target
37
+
error[E0570]: `"stdcall"` is not a supported ABI for the current target
38
38
--> $DIR/unsupported.rs:56:1
39
39
|
40
40
LL | extern "stdcall" fn stdcall() {}
41
41
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
-
|
43
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
44
-
= note: for more information, see issue #87678 <https://github.com/rust-lang/rust/issues/87678>
45
-
= note: `#[warn(unsupported_calling_conventions)]` on by default
46
42
47
-
error: aborting due to 6 previous errors; 1 warning emitted
43
+
error: aborting due to 7 previous errors
48
44
49
45
For more information about this error, try `rustc --explain E0570`.
0 commit comments