2018-01-05 15:26:26 -06:00
|
|
|
warning: #[target_feature = ".."] is deprecated and will eventually be removed, use #[target_feature(enable = "..")] instead
|
2018-01-08 15:43:42 -06:00
|
|
|
--> $DIR/target-feature-wrong.rs:18:1
|
2018-01-05 15:26:26 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #[target_feature = "+sse2"]
|
2018-01-05 15:26:26 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: the feature named `foo` is not valid for this target
|
2018-01-08 15:43:42 -06:00
|
|
|
--> $DIR/target-feature-wrong.rs:20:18
|
2018-01-05 15:26:26 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #[target_feature(enable = "foo")]
|
2018-01-05 15:26:26 -06:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: #[target_feature(..)] only accepts sub-keys of `enable` currently
|
2018-01-08 15:43:42 -06:00
|
|
|
--> $DIR/target-feature-wrong.rs:22:18
|
2018-01-05 15:26:26 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #[target_feature(bar)]
|
2018-01-05 15:26:26 -06:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: #[target_feature(..)] only accepts sub-keys of `enable` currently
|
2018-01-08 15:43:42 -06:00
|
|
|
--> $DIR/target-feature-wrong.rs:24:18
|
2018-01-05 15:26:26 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #[target_feature(disable = "baz")]
|
2018-01-05 15:26:26 -06:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: #[target_feature(..)] can only be applied to `unsafe` function
|
2018-01-08 15:43:42 -06:00
|
|
|
--> $DIR/target-feature-wrong.rs:28:1
|
2018-01-05 15:26:26 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #[target_feature(enable = "sse2")]
|
2018-01-05 15:26:26 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|