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
Copy file name to clipboardExpand all lines: tests/ui/rfcs/rfc-2396-target_feature-11/safe-calls.stderr
+22-38
Original file line number
Diff line number
Diff line change
@@ -4,49 +4,42 @@ error[E0133]: call to function `sse2` with `#[target_feature]` is unsafe and req
4
4
LL | sse2();
5
5
| ^^^^^^ call to function with `#[target_feature]`
6
6
|
7
-
= help: in order for the call to be safe, the context requires the following additional target feature: sse2
8
-
= note: the sse2 target feature being enabled in the build configuration does not remove the requirement to list it in `#[target_feature]`
7
+
= help: in order for the call to be safe, the context requires the following additional target features: sse and sse2
8
+
= note: the sse and sse2 target features being enabled in the build configuration does not remove the requirement to list them in `#[target_feature]`
9
9
10
10
error[E0133]: call to function `avx_bmi2` with `#[target_feature]` is unsafe and requires unsafe function or block
11
11
--> $DIR/safe-calls.rs:29:5
12
12
|
13
13
LL | avx_bmi2();
14
14
| ^^^^^^^^^^ call to function with `#[target_feature]`
15
15
|
16
-
= help: in order for the call to be safe, the context requires the following additional target features: avx and bmi2
16
+
= help: in order for the call to be safe, the context requires the following additional target features: avx, sse, sse2, sse3, sse4.1, sse4.2, ssse3, and bmi2
17
+
= note: the sse and sse2 target features being enabled in the build configuration does not remove the requirement to list them in `#[target_feature]`
17
18
18
19
error[E0133]: call to function `Quux::avx_bmi2` with `#[target_feature]` is unsafe and requires unsafe function or block
19
20
--> $DIR/safe-calls.rs:31:5
20
21
|
21
22
LL | Quux.avx_bmi2();
22
23
| ^^^^^^^^^^^^^^^ call to function with `#[target_feature]`
23
24
|
24
-
= help: in order for the call to be safe, the context requires the following additional target features: avx and bmi2
25
+
= help: in order for the call to be safe, the context requires the following additional target features: avx, sse, sse2, sse3, sse4.1, sse4.2, ssse3, and bmi2
26
+
= note: the sse and sse2 target features being enabled in the build configuration does not remove the requirement to list them in `#[target_feature]`
25
27
26
28
error[E0133]: call to function `avx_bmi2` with `#[target_feature]` is unsafe and requires unsafe function or block
27
-
--> $DIR/safe-calls.rs:37:5
29
+
--> $DIR/safe-calls.rs:38:5
28
30
|
29
31
LL | avx_bmi2();
30
32
| ^^^^^^^^^^ call to function with `#[target_feature]`
31
33
|
32
-
= help: in order for the call to be safe, the context requires the following additional target features: avx and bmi2
34
+
= help: in order for the call to be safe, the context requires the following additional target features: avx, sse3, sse4.1, sse4.2, ssse3, and bmi2
33
35
34
36
error[E0133]: call to function `Quux::avx_bmi2` with `#[target_feature]` is unsafe and requires unsafe function or block
35
-
--> $DIR/safe-calls.rs:39:5
37
+
--> $DIR/safe-calls.rs:40:5
36
38
|
37
39
LL | Quux.avx_bmi2();
38
40
| ^^^^^^^^^^^^^^^ call to function with `#[target_feature]`
39
41
|
40
-
= help: in order for the call to be safe, the context requires the following additional target features: avx and bmi2
41
-
42
-
error[E0133]: call to function `sse2` with `#[target_feature]` is unsafe and requires unsafe function or block
43
-
--> $DIR/safe-calls.rs:45:5
44
-
|
45
-
LL | sse2();
46
-
| ^^^^^^ call to function with `#[target_feature]`
47
-
|
48
-
= help: in order for the call to be safe, the context requires the following additional target feature: sse2
49
-
= note: the sse2 target feature being enabled in the build configuration does not remove the requirement to list it in `#[target_feature]`
42
+
= help: in order for the call to be safe, the context requires the following additional target features: avx, sse3, sse4.1, sse4.2, ssse3, and bmi2
50
43
51
44
error[E0133]: call to function `avx_bmi2` with `#[target_feature]` is unsafe and requires unsafe function or block
52
45
--> $DIR/safe-calls.rs:47:5
@@ -65,52 +58,43 @@ LL | Quux.avx_bmi2();
65
58
= help: in order for the call to be safe, the context requires the following additional target feature: bmi2
66
59
67
60
error[E0133]: call to function `sse2` with `#[target_feature]` is unsafe and requires unsafe function or block
68
-
--> $DIR/safe-calls.rs:56:5
69
-
|
70
-
LL | sse2();
71
-
| ^^^^^^ call to function with `#[target_feature]`
72
-
|
73
-
= help: in order for the call to be safe, the context requires the following additional target feature: sse2
74
-
= note: the sse2 target feature being enabled in the build configuration does not remove the requirement to list it in `#[target_feature]`
75
-
76
-
error[E0133]: call to function `sse2` with `#[target_feature]` is unsafe and requires unsafe function or block
77
-
--> $DIR/safe-calls.rs:60:15
61
+
--> $DIR/safe-calls.rs:61:15
78
62
|
79
63
LL | const _: () = sse2();
80
64
| ^^^^^^ call to function with `#[target_feature]`
81
65
|
82
-
= help: in order for the call to be safe, the context requires the following additional target feature: sse2
83
-
= note: the sse2 target feature being enabled in the build configuration does not remove the requirement to list it in `#[target_feature]`
66
+
= help: in order for the call to be safe, the context requires the following additional target features: sse and sse2
67
+
= note: the sse and sse2 target features being enabled in the build configuration does not remove the requirement to list them in `#[target_feature]`
84
68
85
69
error[E0133]: call to function `sse2_and_fxsr` with `#[target_feature]` is unsafe and requires unsafe function or block
86
-
--> $DIR/safe-calls.rs:63:15
70
+
--> $DIR/safe-calls.rs:64:15
87
71
|
88
72
LL | const _: () = sse2_and_fxsr();
89
73
| ^^^^^^^^^^^^^^^ call to function with `#[target_feature]`
90
74
|
91
-
= help: in order for the call to be safe, the context requires the following additional target features: sse2 and fxsr
92
-
= note: the fxsr and sse2 target features being enabled in the build configuration does not remove the requirement to list them in `#[target_feature]`
75
+
= help: in order for the call to be safe, the context requires the following additional target features: sse, sse2, and fxsr
76
+
= note: the fxsr, sse, and sse2 target features being enabled in the build configuration does not remove the requirement to list them in `#[target_feature]`
93
77
94
78
error[E0133]: call to function `sse2` with `#[target_feature]` is unsafe and requires unsafe block
95
-
--> $DIR/safe-calls.rs:70:5
79
+
--> $DIR/safe-calls.rs:69:5
96
80
|
97
81
LL | sse2();
98
82
| ^^^^^^ call to function with `#[target_feature]`
99
83
|
100
84
= note: for more information, see issue #71668 <https://github.com/rust-lang/rust/issues/71668>
101
-
= help: in order for the call to be safe, the context requires the following additional target feature: sse2
102
-
= note: the sse2 target feature being enabled in the build configuration does not remove the requirement to list it in `#[target_feature]`
85
+
= help: in order for the call to be safe, the context requires the following additional target features: sse and sse2
86
+
= note: the sse and sse2 target features being enabled in the build configuration does not remove the requirement to list them in `#[target_feature]`
103
87
note: an unsafe function restricts its caller, but its body is safe by default
104
-
--> $DIR/safe-calls.rs:69:1
88
+
--> $DIR/safe-calls.rs:68:1
105
89
|
106
90
LL | unsafe fn needs_unsafe_block() {
107
91
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108
92
note: the lint level is defined here
109
-
--> $DIR/safe-calls.rs:66:8
93
+
--> $DIR/safe-calls.rs:67:8
110
94
|
111
95
LL | #[deny(unsafe_op_in_unsafe_fn)]
112
96
| ^^^^^^^^^^^^^^^^^^^^^^
113
97
114
-
error: aborting due to 12 previous errors
98
+
error: aborting due to 10 previous errors
115
99
116
100
For more information about this error, try `rustc --explain E0133`.
0 commit comments