|
1 | 1 | warning: #[target_feature = ".."] is deprecated and will eventually be removed, use #[target_feature(enable = "..")] instead
|
2 |
| - --> $DIR/target-feature-wrong.rs:18:1 |
| 2 | + --> $DIR/target-feature-wrong.rs:19:1 |
3 | 3 | |
|
4 | 4 | LL | #[target_feature = "+sse2"]
|
5 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
6 | 6 |
|
7 | 7 | error: the feature named `foo` is not valid for this target
|
8 |
| - --> $DIR/target-feature-wrong.rs:20:18 |
| 8 | + --> $DIR/target-feature-wrong.rs:21:18 |
9 | 9 | |
|
10 | 10 | LL | #[target_feature(enable = "foo")]
|
11 | 11 | | ^^^^^^^^^^^^^^
|
12 | 12 |
|
13 | 13 | error: #[target_feature(..)] only accepts sub-keys of `enable` currently
|
14 |
| - --> $DIR/target-feature-wrong.rs:22:18 |
| 14 | + --> $DIR/target-feature-wrong.rs:23:18 |
15 | 15 | |
|
16 | 16 | LL | #[target_feature(bar)]
|
17 | 17 | | ^^^
|
18 | 18 |
|
19 | 19 | error: #[target_feature(..)] only accepts sub-keys of `enable` currently
|
20 |
| - --> $DIR/target-feature-wrong.rs:24:18 |
| 20 | + --> $DIR/target-feature-wrong.rs:25:18 |
21 | 21 | |
|
22 | 22 | LL | #[target_feature(disable = "baz")]
|
23 | 23 | | ^^^^^^^^^^^^^^^
|
24 | 24 |
|
25 | 25 | error: #[target_feature(..)] can only be applied to `unsafe` function
|
26 |
| - --> $DIR/target-feature-wrong.rs:28:1 |
| 26 | + --> $DIR/target-feature-wrong.rs:29:1 |
27 | 27 | |
|
28 | 28 | LL | #[target_feature(enable = "sse2")]
|
29 | 29 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
30 | 30 |
|
31 | 31 | error: attribute should be applied to a function
|
32 |
| - --> $DIR/target-feature-wrong.rs:32:1 |
| 32 | + --> $DIR/target-feature-wrong.rs:33:1 |
33 | 33 | |
|
34 | 34 | LL | #[target_feature(enable = "sse2")]
|
35 | 35 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
0 commit comments