11warning: #[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:21 :1
33 |
44LL | #[target_feature = "+sse2"]
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
77error: the feature named `foo` is not valid for this target
8- --> $DIR/target-feature-wrong.rs:20 :18
8+ --> $DIR/target-feature-wrong.rs:23 :18
99 |
1010LL | #[target_feature(enable = "foo")]
1111 | ^^^^^^^^^^^^^^
1212
1313error: #[target_feature(..)] only accepts sub-keys of `enable` currently
14- --> $DIR/target-feature-wrong.rs:22 :18
14+ --> $DIR/target-feature-wrong.rs:25 :18
1515 |
1616LL | #[target_feature(bar)]
1717 | ^^^
1818
1919error: #[target_feature(..)] only accepts sub-keys of `enable` currently
20- --> $DIR/target-feature-wrong.rs:24 :18
20+ --> $DIR/target-feature-wrong.rs:27 :18
2121 |
2222LL | #[target_feature(disable = "baz")]
2323 | ^^^^^^^^^^^^^^^
2424
2525error: #[target_feature(..)] can only be applied to `unsafe` function
26- --> $DIR/target-feature-wrong.rs:28 :1
26+ --> $DIR/target-feature-wrong.rs:31 :1
2727 |
2828LL | #[target_feature(enable = "sse2")]
2929 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3030
3131error: attribute should be applied to a function
32- --> $DIR/target-feature-wrong.rs:32 :1
32+ --> $DIR/target-feature-wrong.rs:35 :1
3333 |
3434LL | #[target_feature(enable = "sse2")]
3535 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -38,7 +38,7 @@ LL | mod another {}
3838 | -------------- not a function
3939
4040error: cannot use #[inline(always)] with #[target_feature]
41- --> $DIR/target-feature-wrong.rs:36 :1
41+ --> $DIR/target-feature-wrong.rs:39 :1
4242 |
4343LL | #[inline(always)]
4444 | ^^^^^^^^^^^^^^^^^
0 commit comments