fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error: malformed `target_feature` attribute input 2 --> $DIR/target-feature-wrong.rs:16:1 3 | 4LL | #[target_feature = "+sse2"] 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[target_feature(enable = "name")]` 6 7error: the feature named `foo` is not valid for this target 8 --> $DIR/target-feature-wrong.rs:18:18 9 | 10LL | #[target_feature(enable = "foo")] 11 | ^^^^^^^^^^^^^^ `foo` is not valid for this target 12 13error: malformed `target_feature` attribute input 14 --> $DIR/target-feature-wrong.rs:21:18 15 | 16LL | #[target_feature(bar)] 17 | ^^^ help: must be of the form: `enable = ".."` 18 19error: malformed `target_feature` attribute input 20 --> $DIR/target-feature-wrong.rs:23:18 21 | 22LL | #[target_feature(disable = "baz")] 23 | ^^^^^^^^^^^^^^^ help: must be of the form: `enable = ".."` 24 25error: `#[target_feature(..)]` can only be applied to `unsafe` functions 26 --> $DIR/target-feature-wrong.rs:27:1 27 | 28LL | #[target_feature(enable = "sse2")] 29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can only be applied to `unsafe` functions 30... 31LL | fn bar() {} 32 | ----------- not an `unsafe` function 33 34error: attribute should be applied to a function 35 --> $DIR/target-feature-wrong.rs:33:1 36 | 37LL | #[target_feature(enable = "sse2")] 38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 39LL | 40LL | mod another {} 41 | -------------- not a function 42 43error: cannot use `#[inline(always)]` with `#[target_feature]` 44 --> $DIR/target-feature-wrong.rs:38:1 45 | 46LL | #[inline(always)] 47 | ^^^^^^^^^^^^^^^^^ 48 49error: aborting due to 7 previous errors 50