1
1
error[E0133]: call to function `sse2` with `#[target_feature]` is unsafe and requires unsafe function or block
2
- --> $DIR/safe-calls.rs:25 :5
2
+ --> $DIR/safe-calls.rs:27 :5
3
3
|
4
4
LL | sse2();
5
5
| ^^^^^^ call to function with `#[target_feature]`
@@ -8,39 +8,39 @@ LL | sse2();
8
8
= note: the sse2 target feature being enabled in the build configuration does not remove the requirement to list it 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
- --> $DIR/safe-calls.rs:27 :5
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
16
= help: in order for the call to be safe, the context requires the following additional target features: avx and bmi2
17
17
18
18
error[E0133]: call to function `Quux::avx_bmi2` with `#[target_feature]` is unsafe and requires unsafe function or block
19
- --> $DIR/safe-calls.rs:29 :5
19
+ --> $DIR/safe-calls.rs:31 :5
20
20
|
21
21
LL | Quux.avx_bmi2();
22
22
| ^^^^^^^^^^^^^^^ call to function with `#[target_feature]`
23
23
|
24
24
= help: in order for the call to be safe, the context requires the following additional target features: avx and bmi2
25
25
26
26
error[E0133]: call to function `avx_bmi2` with `#[target_feature]` is unsafe and requires unsafe function or block
27
- --> $DIR/safe-calls.rs:35 :5
27
+ --> $DIR/safe-calls.rs:37 :5
28
28
|
29
29
LL | avx_bmi2();
30
30
| ^^^^^^^^^^ call to function with `#[target_feature]`
31
31
|
32
32
= help: in order for the call to be safe, the context requires the following additional target features: avx and bmi2
33
33
34
34
error[E0133]: call to function `Quux::avx_bmi2` with `#[target_feature]` is unsafe and requires unsafe function or block
35
- --> $DIR/safe-calls.rs:37 :5
35
+ --> $DIR/safe-calls.rs:39 :5
36
36
|
37
37
LL | Quux.avx_bmi2();
38
38
| ^^^^^^^^^^^^^^^ call to function with `#[target_feature]`
39
39
|
40
40
= help: in order for the call to be safe, the context requires the following additional target features: avx and bmi2
41
41
42
42
error[E0133]: call to function `sse2` with `#[target_feature]` is unsafe and requires unsafe function or block
43
- --> $DIR/safe-calls.rs:43 :5
43
+ --> $DIR/safe-calls.rs:45 :5
44
44
|
45
45
LL | sse2();
46
46
| ^^^^^^ call to function with `#[target_feature]`
@@ -49,23 +49,23 @@ LL | sse2();
49
49
= note: the sse2 target feature being enabled in the build configuration does not remove the requirement to list it in `#[target_feature]`
50
50
51
51
error[E0133]: call to function `avx_bmi2` with `#[target_feature]` is unsafe and requires unsafe function or block
52
- --> $DIR/safe-calls.rs:45 :5
52
+ --> $DIR/safe-calls.rs:47 :5
53
53
|
54
54
LL | avx_bmi2();
55
55
| ^^^^^^^^^^ call to function with `#[target_feature]`
56
56
|
57
57
= help: in order for the call to be safe, the context requires the following additional target feature: bmi2
58
58
59
59
error[E0133]: call to function `Quux::avx_bmi2` with `#[target_feature]` is unsafe and requires unsafe function or block
60
- --> $DIR/safe-calls.rs:47 :5
60
+ --> $DIR/safe-calls.rs:49 :5
61
61
|
62
62
LL | Quux.avx_bmi2();
63
63
| ^^^^^^^^^^^^^^^ call to function with `#[target_feature]`
64
64
|
65
65
= help: in order for the call to be safe, the context requires the following additional target feature: bmi2
66
66
67
67
error[E0133]: call to function `sse2` with `#[target_feature]` is unsafe and requires unsafe function or block
68
- --> $DIR/safe-calls.rs:54 :5
68
+ --> $DIR/safe-calls.rs:56 :5
69
69
|
70
70
LL | sse2();
71
71
| ^^^^^^ call to function with `#[target_feature]`
@@ -74,7 +74,7 @@ LL | sse2();
74
74
= note: the sse2 target feature being enabled in the build configuration does not remove the requirement to list it in `#[target_feature]`
75
75
76
76
error[E0133]: call to function `sse2` with `#[target_feature]` is unsafe and requires unsafe function or block
77
- --> $DIR/safe-calls.rs:58 :15
77
+ --> $DIR/safe-calls.rs:60 :15
78
78
|
79
79
LL | const _: () = sse2();
80
80
| ^^^^^^ call to function with `#[target_feature]`
@@ -83,7 +83,7 @@ LL | const _: () = sse2();
83
83
= note: the sse2 target feature being enabled in the build configuration does not remove the requirement to list it in `#[target_feature]`
84
84
85
85
error[E0133]: call to function `sse2_and_fxsr` with `#[target_feature]` is unsafe and requires unsafe function or block
86
- --> $DIR/safe-calls.rs:61 :15
86
+ --> $DIR/safe-calls.rs:63 :15
87
87
|
88
88
LL | const _: () = sse2_and_fxsr();
89
89
| ^^^^^^^^^^^^^^^ call to function with `#[target_feature]`
@@ -92,7 +92,7 @@ LL | const _: () = sse2_and_fxsr();
92
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]`
93
93
94
94
error: call to function `sse2` with `#[target_feature]` is unsafe and requires unsafe block (error E0133)
95
- --> $DIR/safe-calls.rs:68 :5
95
+ --> $DIR/safe-calls.rs:70 :5
96
96
|
97
97
LL | sse2();
98
98
| ^^^^^^ call to function with `#[target_feature]`
@@ -101,12 +101,12 @@ LL | sse2();
101
101
= help: in order for the call to be safe, the context requires the following additional target feature: sse2
102
102
= note: the sse2 target feature being enabled in the build configuration does not remove the requirement to list it in `#[target_feature]`
103
103
note: an unsafe function restricts its caller, but its body is safe by default
104
- --> $DIR/safe-calls.rs:67 :1
104
+ --> $DIR/safe-calls.rs:69 :1
105
105
|
106
106
LL | unsafe fn needs_unsafe_block() {
107
107
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108
108
note: the lint level is defined here
109
- --> $DIR/safe-calls.rs:64 :8
109
+ --> $DIR/safe-calls.rs:66 :8
110
110
|
111
111
LL | #[deny(unsafe_op_in_unsafe_fn)]
112
112
| ^^^^^^^^^^^^^^^^^^^^^^
0 commit comments