2019-05-21 19:47:23 -05:00
|
|
|
error: malformed `target_feature` attribute input
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/target-feature-wrong.rs:16:1
|
2018-01-05 15:26:26 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #[target_feature = "+sse2"]
|
2019-05-21 19:47:23 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[target_feature(enable = "name")]`
|
2018-01-05 15:26:26 -06:00
|
|
|
|
|
|
|
error: the feature named `foo` is not valid for this target
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/target-feature-wrong.rs:18:18
|
2018-01-05 15:26:26 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #[target_feature(enable = "foo")]
|
2019-05-21 19:47:23 -05:00
|
|
|
| ^^^^^^^^^^^^^^ `foo` is not valid for this target
|
2018-01-05 15:26:26 -06:00
|
|
|
|
2019-05-21 19:47:23 -05:00
|
|
|
error: malformed `target_feature` attribute input
|
|
|
|
--> $DIR/target-feature-wrong.rs:21:18
|
2018-01-05 15:26:26 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #[target_feature(bar)]
|
2019-05-21 19:47:23 -05:00
|
|
|
| ^^^ help: must be of the form: `enable = ".."`
|
2018-01-05 15:26:26 -06:00
|
|
|
|
2019-05-21 19:47:23 -05:00
|
|
|
error: malformed `target_feature` attribute input
|
|
|
|
--> $DIR/target-feature-wrong.rs:23:18
|
2018-01-05 15:26:26 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #[target_feature(disable = "baz")]
|
2019-05-21 19:47:23 -05:00
|
|
|
| ^^^^^^^^^^^^^^^ help: must be of the form: `enable = ".."`
|
2018-01-05 15:26:26 -06:00
|
|
|
|
2019-07-07 04:37:34 -05:00
|
|
|
error: `#[target_feature(..)]` can only be applied to `unsafe` functions
|
2019-05-21 19:47:23 -05:00
|
|
|
--> $DIR/target-feature-wrong.rs:27:1
|
2018-01-05 15:26:26 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #[target_feature(enable = "sse2")]
|
2019-05-21 19:47:23 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can only be applied to `unsafe` functions
|
|
|
|
...
|
|
|
|
LL | fn bar() {}
|
|
|
|
| ----------- not an `unsafe` function
|
2018-01-05 15:26:26 -06:00
|
|
|
|
2018-03-05 10:12:13 -06:00
|
|
|
error: attribute should be applied to a function
|
2019-05-21 19:47:23 -05:00
|
|
|
--> $DIR/target-feature-wrong.rs:33:1
|
2018-03-05 10:12:13 -06:00
|
|
|
|
|
|
|
|
LL | #[target_feature(enable = "sse2")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-03-05 10:12:13 -06:00
|
|
|
LL | mod another {}
|
|
|
|
| -------------- not a function
|
|
|
|
|
2019-07-07 04:37:34 -05:00
|
|
|
error: cannot use `#[inline(always)]` with `#[target_feature]`
|
2019-05-21 19:47:23 -05:00
|
|
|
--> $DIR/target-feature-wrong.rs:38:1
|
2018-03-27 13:42:04 -05:00
|
|
|
|
|
|
|
|
LL | #[inline(always)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
2018-04-05 10:02:11 -05:00
|
|
|
error: aborting due to 7 previous errors
|
2018-01-05 15:26:26 -06:00
|
|
|
|