11error[E0133]: call to function `sse2` with `#[target_feature]` is unsafe and requires unsafe function or block
2- --> $DIR/safe-calls.rs:26 :5
2+ --> $DIR/safe-calls.rs:27 :5
33 |
44LL | sse2();
55 | ^^^^^^ call to function with `#[target_feature]`
@@ -8,39 +8,39 @@ LL | sse2();
88 = note: the sse2 target feature being enabled in the build configuration does not remove the requirement to list it in `#[target_feature]`
99
1010error[E0133]: call to function `avx_bmi2` with `#[target_feature]` is unsafe and requires unsafe function or block
11- --> $DIR/safe-calls.rs:28 :5
11+ --> $DIR/safe-calls.rs:29 :5
1212 |
1313LL | avx_bmi2();
1414 | ^^^^^^^^^^ call to function with `#[target_feature]`
1515 |
1616 = help: in order for the call to be safe, the context requires the following additional target features: avx and bmi2
1717
1818error[E0133]: call to function `Quux::avx_bmi2` with `#[target_feature]` is unsafe and requires unsafe function or block
19- --> $DIR/safe-calls.rs:30 :5
19+ --> $DIR/safe-calls.rs:31 :5
2020 |
2121LL | Quux.avx_bmi2();
2222 | ^^^^^^^^^^^^^^^ call to function with `#[target_feature]`
2323 |
2424 = help: in order for the call to be safe, the context requires the following additional target features: avx and bmi2
2525
2626error[E0133]: call to function `avx_bmi2` with `#[target_feature]` is unsafe and requires unsafe function or block
27- --> $DIR/safe-calls.rs:36 :5
27+ --> $DIR/safe-calls.rs:37 :5
2828 |
2929LL | avx_bmi2();
3030 | ^^^^^^^^^^ call to function with `#[target_feature]`
3131 |
3232 = help: in order for the call to be safe, the context requires the following additional target features: avx and bmi2
3333
3434error[E0133]: call to function `Quux::avx_bmi2` with `#[target_feature]` is unsafe and requires unsafe function or block
35- --> $DIR/safe-calls.rs:38 :5
35+ --> $DIR/safe-calls.rs:39 :5
3636 |
3737LL | Quux.avx_bmi2();
3838 | ^^^^^^^^^^^^^^^ call to function with `#[target_feature]`
3939 |
4040 = help: in order for the call to be safe, the context requires the following additional target features: avx and bmi2
4141
4242error[E0133]: call to function `sse2` with `#[target_feature]` is unsafe and requires unsafe function or block
43- --> $DIR/safe-calls.rs:44 :5
43+ --> $DIR/safe-calls.rs:45 :5
4444 |
4545LL | sse2();
4646 | ^^^^^^ call to function with `#[target_feature]`
@@ -49,23 +49,23 @@ LL | sse2();
4949 = note: the sse2 target feature being enabled in the build configuration does not remove the requirement to list it in `#[target_feature]`
5050
5151error[E0133]: call to function `avx_bmi2` with `#[target_feature]` is unsafe and requires unsafe function or block
52- --> $DIR/safe-calls.rs:46 :5
52+ --> $DIR/safe-calls.rs:47 :5
5353 |
5454LL | avx_bmi2();
5555 | ^^^^^^^^^^ call to function with `#[target_feature]`
5656 |
5757 = help: in order for the call to be safe, the context requires the following additional target feature: bmi2
5858
5959error[E0133]: call to function `Quux::avx_bmi2` with `#[target_feature]` is unsafe and requires unsafe function or block
60- --> $DIR/safe-calls.rs:48 :5
60+ --> $DIR/safe-calls.rs:49 :5
6161 |
6262LL | Quux.avx_bmi2();
6363 | ^^^^^^^^^^^^^^^ call to function with `#[target_feature]`
6464 |
6565 = help: in order for the call to be safe, the context requires the following additional target feature: bmi2
6666
6767error[E0133]: call to function `sse2` with `#[target_feature]` is unsafe and requires unsafe function or block
68- --> $DIR/safe-calls.rs:55 :5
68+ --> $DIR/safe-calls.rs:56 :5
6969 |
7070LL | sse2();
7171 | ^^^^^^ call to function with `#[target_feature]`
@@ -74,7 +74,7 @@ LL | sse2();
7474 = note: the sse2 target feature being enabled in the build configuration does not remove the requirement to list it in `#[target_feature]`
7575
7676error[E0133]: call to function `sse2` with `#[target_feature]` is unsafe and requires unsafe function or block
77- --> $DIR/safe-calls.rs:59 :15
77+ --> $DIR/safe-calls.rs:60 :15
7878 |
7979LL | const _: () = sse2();
8080 | ^^^^^^ call to function with `#[target_feature]`
@@ -83,7 +83,7 @@ LL | const _: () = sse2();
8383 = note: the sse2 target feature being enabled in the build configuration does not remove the requirement to list it in `#[target_feature]`
8484
8585error[E0133]: call to function `sse2_and_fxsr` with `#[target_feature]` is unsafe and requires unsafe function or block
86- --> $DIR/safe-calls.rs:62 :15
86+ --> $DIR/safe-calls.rs:63 :15
8787 |
8888LL | const _: () = sse2_and_fxsr();
8989 | ^^^^^^^^^^^^^^^ call to function with `#[target_feature]`
@@ -92,7 +92,7 @@ LL | const _: () = sse2_and_fxsr();
9292 = note: the fxsr and sse2 target features being enabled in the build configuration does not remove the requirement to list them in `#[target_feature]`
9393
9494error: call to function `sse2` with `#[target_feature]` is unsafe and requires unsafe block (error E0133)
95- --> $DIR/safe-calls.rs:69 :5
95+ --> $DIR/safe-calls.rs:70 :5
9696 |
9797LL | sse2();
9898 | ^^^^^^ call to function with `#[target_feature]`
@@ -101,12 +101,12 @@ LL | sse2();
101101 = help: in order for the call to be safe, the context requires the following additional target feature: sse2
102102 = note: the sse2 target feature being enabled in the build configuration does not remove the requirement to list it in `#[target_feature]`
103103note: an unsafe function restricts its caller, but its body is safe by default
104- --> $DIR/safe-calls.rs:68 :1
104+ --> $DIR/safe-calls.rs:69 :1
105105 |
106106LL | unsafe fn needs_unsafe_block() {
107107 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108108note: the lint level is defined here
109- --> $DIR/safe-calls.rs:65 :8
109+ --> $DIR/safe-calls.rs:66 :8
110110 |
111111LL | #[deny(unsafe_op_in_unsafe_fn)]
112112 | ^^^^^^^^^^^^^^^^^^^^^^
0 commit comments