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
ABI error: this function call uses a vector type that requires the `{$required_feature}` target feature, which is not enabled in the caller
2
+
this function call uses a SIMD vector type that (with the chosen ABI) requires the `{$required_feature}` target feature, which is not enabled in the caller
3
3
.label = function called here
4
4
.help = consider enabling it globally (`-C target-feature=+{$required_feature}`) or locally (`#[target_feature(enable="{$required_feature}")]`)
5
5
monomorphize_abi_error_disabled_vector_type_def =
6
-
ABI error: this function definition uses a vector type that requires the `{$required_feature}` target feature, which is not enabled
6
+
this function definition uses a SIMD vector type that (with the chosen ABI) requires the `{$required_feature}` target feature, which is not enabled
7
7
.label = function defined here
8
8
.help = consider enabling it globally (`-C target-feature=+{$required_feature}`) or locally (`#[target_feature(enable="{$required_feature}")]`)
warning: this function definition uses a SIMD vector type that is not currently supported with the chosen ABI
2
+
--> $DIR/simd-abi-checks-empty-list.rs:17:1
3
+
|
4
+
LL | pub extern "C" fn pass_by_vec(_: SimdVec) {}
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function defined here
6
+
|
7
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8
+
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
9
+
= note: `#[warn(abi_unsupported_vector_types)]` on by default
Copy file name to clipboardExpand all lines: tests/ui/simd-abi-checks.rs
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -12,19 +12,19 @@ use std::arch::x86_64::*;
12
12
structWrapper(__m256);
13
13
14
14
unsafeextern"C"fnw(_:Wrapper){
15
-
//~^ ABI error: this function definition uses a vector type that requires the `avx` target feature, which is not enabled
15
+
//~^ this function definition uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled
16
16
//~| WARNING this was previously accepted by the compiler
17
17
todo!()
18
18
}
19
19
20
20
unsafeextern"C"fnf(_:__m256){
21
-
//~^ ABI error: this function definition uses a vector type that requires the `avx` target feature, which is not enabled
21
+
//~^ this function definition uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled
22
22
//~| WARNING this was previously accepted by the compiler
23
23
todo!()
24
24
}
25
25
26
26
unsafeextern"C"fng() -> __m256{
27
-
//~^ ABI error: this function definition uses a vector type that requires the `avx` target feature, which is not enabled
27
+
//~^ this function definition uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled
28
28
//~| WARNING this was previously accepted by the compiler
29
29
todo!()
30
30
}
@@ -53,16 +53,16 @@ unsafe fn test() {
53
53
fnmain(){
54
54
unsafe{
55
55
f(g());
56
-
//~^ WARNING ABI error: this function call uses a vector type that requires the `avx` target feature, which is not enabled in the caller
57
-
//~| WARNING ABI error: this function call uses a vector type that requires the `avx` target feature, which is not enabled in the caller
56
+
//~^ WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
57
+
//~| WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
58
58
//~| WARNING this was previously accepted by the compiler
59
59
//~| WARNING this was previously accepted by the compiler
60
60
}
61
61
62
62
unsafe{
63
63
gavx(favx());
64
-
//~^ WARNING ABI error: this function call uses a vector type that requires the `avx` target feature, which is not enabled in the caller
65
-
//~| WARNING ABI error: this function call uses a vector type that requires the `avx` target feature, which is not enabled in the caller
64
+
//~^ WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
65
+
//~| WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
66
66
//~| WARNING this was previously accepted by the compiler
67
67
//~| WARNING this was previously accepted by the compiler
68
68
}
@@ -73,8 +73,8 @@ fn main() {
73
73
74
74
unsafe{
75
75
w(Wrapper(g()));
76
-
//~^ WARNING ABI error: this function call uses a vector type that requires the `avx` target feature, which is not enabled in the caller
77
-
//~| WARNING ABI error: this function call uses a vector type that requires the `avx` target feature, which is not enabled in the caller
76
+
//~^ WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
77
+
//~| WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
78
78
//~| WARNING this was previously accepted by the compiler
79
79
//~| WARNING this was previously accepted by the compiler
Copy file name to clipboardExpand all lines: tests/ui/simd-abi-checks.stderr
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
warning: ABI error: this function call uses a vector type that requires the `avx` target feature, which is not enabled in the caller
1
+
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
2
2
--> $DIR/simd-abi-checks.rs:55:11
3
3
|
4
4
LL | f(g());
@@ -9,7 +9,7 @@ LL | f(g());
9
9
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
10
10
= note: `#[warn(abi_unsupported_vector_types)]` on by default
11
11
12
-
warning: ABI error: this function call uses a vector type that requires the `avx` target feature, which is not enabled in the caller
12
+
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
13
13
--> $DIR/simd-abi-checks.rs:55:9
14
14
|
15
15
LL | f(g());
@@ -19,7 +19,7 @@ LL | f(g());
19
19
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
20
20
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
21
21
22
-
warning: ABI error: this function call uses a vector type that requires the `avx` target feature, which is not enabled in the caller
22
+
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
23
23
--> $DIR/simd-abi-checks.rs:63:14
24
24
|
25
25
LL | gavx(favx());
@@ -29,7 +29,7 @@ LL | gavx(favx());
29
29
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
30
30
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
31
31
32
-
warning: ABI error: this function call uses a vector type that requires the `avx` target feature, which is not enabled in the caller
32
+
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
33
33
--> $DIR/simd-abi-checks.rs:63:9
34
34
|
35
35
LL | gavx(favx());
@@ -39,7 +39,7 @@ LL | gavx(favx());
39
39
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
40
40
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
41
41
42
-
warning: ABI error: this function call uses a vector type that requires the `avx` target feature, which is not enabled in the caller
42
+
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
43
43
--> $DIR/simd-abi-checks.rs:75:19
44
44
|
45
45
LL | w(Wrapper(g()));
@@ -49,7 +49,7 @@ LL | w(Wrapper(g()));
49
49
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
50
50
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
51
51
52
-
warning: ABI error: this function call uses a vector type that requires the `avx` target feature, which is not enabled in the caller
52
+
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
53
53
--> $DIR/simd-abi-checks.rs:75:9
54
54
|
55
55
LL | w(Wrapper(g()));
@@ -59,7 +59,7 @@ LL | w(Wrapper(g()));
59
59
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
60
60
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
61
61
62
-
warning: ABI error: this function definition uses a vector type that requires the `avx` target feature, which is not enabled
62
+
warning: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
70
70
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
71
71
72
-
warning: ABI error: this function definition uses a vector type that requires the `avx` target feature, which is not enabled
72
+
warning: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
80
80
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
81
81
82
-
warning: ABI error: this function definition uses a vector type that requires the `avx` target feature, which is not enabled
82
+
warning: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled
0 commit comments