2018-04-05 08:02:11 -07:00
|
|
|
error: #[target_feature] attribute must be of the form #[target_feature(..)]
|
2018-04-10 10:19:58 +02:00
|
|
|
--> $DIR/target-feature-wrong.rs:21:1
|
2018-01-05 13:26:26 -08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #[target_feature = "+sse2"]
|
2018-01-05 13:26:26 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: the feature named `foo` is not valid for this target
|
2018-04-10 10:19:58 +02:00
|
|
|
--> $DIR/target-feature-wrong.rs:23:18
|
2018-01-05 13:26:26 -08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #[target_feature(enable = "foo")]
|
2018-01-05 13:26:26 -08:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: #[target_feature(..)] only accepts sub-keys of `enable` currently
|
2018-04-10 10:19:58 +02:00
|
|
|
--> $DIR/target-feature-wrong.rs:25:18
|
2018-01-05 13:26:26 -08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #[target_feature(bar)]
|
2018-01-05 13:26:26 -08:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: #[target_feature(..)] only accepts sub-keys of `enable` currently
|
2018-04-10 10:19:58 +02:00
|
|
|
--> $DIR/target-feature-wrong.rs:27:18
|
2018-01-05 13:26:26 -08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #[target_feature(disable = "baz")]
|
2018-01-05 13:26:26 -08:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: #[target_feature(..)] can only be applied to `unsafe` function
|
2018-04-10 10:19:58 +02:00
|
|
|
--> $DIR/target-feature-wrong.rs:31:1
|
2018-01-05 13:26:26 -08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #[target_feature(enable = "sse2")]
|
2018-01-05 13:26:26 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2018-03-05 08:12:13 -08:00
|
|
|
error: attribute should be applied to a function
|
2018-04-10 10:19:58 +02:00
|
|
|
--> $DIR/target-feature-wrong.rs:35:1
|
2018-03-05 08:12:13 -08:00
|
|
|
|
|
|
|
|
LL | #[target_feature(enable = "sse2")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
LL | //~^ ERROR: should be applied to a function
|
|
|
|
LL | mod another {}
|
|
|
|
| -------------- not a function
|
|
|
|
|
2018-03-27 11:42:04 -07:00
|
|
|
error: cannot use #[inline(always)] with #[target_feature]
|
2018-04-10 10:19:58 +02:00
|
|
|
--> $DIR/target-feature-wrong.rs:39:1
|
2018-03-27 11:42:04 -07:00
|
|
|
|
|
|
|
|
LL | #[inline(always)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
2018-04-05 08:02:11 -07:00
|
|
|
error: aborting due to 7 previous errors
|
2018-01-05 13:26:26 -08:00
|
|
|
|