fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error: malformed `target_feature` attribute input 2 --> $DIR/invalid-attribute.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/invalid-attribute.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/invalid-attribute.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/invalid-attribute.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/invalid-attribute.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/invalid-attribute.rs:33:1 36 | 37LL | #[target_feature(enable = "sse2")] 38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 39LL | 40LL | mod another {} 41 | -------------- not a function 42 43error: attribute should be applied to a function 44 --> $DIR/invalid-attribute.rs:38:1 45 | 46LL | #[target_feature(enable = "sse2")] 47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 48LL | 49LL | const FOO: usize = 7; 50 | --------------------- not a function 51 52error: attribute should be applied to a function 53 --> $DIR/invalid-attribute.rs:43:1 54 | 55LL | #[target_feature(enable = "sse2")] 56 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 57LL | 58LL | struct Foo; 59 | ----------- not a function 60 61error: attribute should be applied to a function 62 --> $DIR/invalid-attribute.rs:48:1 63 | 64LL | #[target_feature(enable = "sse2")] 65 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 66LL | 67LL | enum Bar { } 68 | ------------ not a function 69 70error: attribute should be applied to a function 71 --> $DIR/invalid-attribute.rs:53:1 72 | 73LL | #[target_feature(enable = "sse2")] 74 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 75LL | 76LL | union Qux { f1: u16, f2: u16 } 77 | ------------------------------ not a function 78 79error: attribute should be applied to a function 80 --> $DIR/invalid-attribute.rs:58:1 81 | 82LL | #[target_feature(enable = "sse2")] 83 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 84LL | 85LL | trait Baz { } 86 | ------------- not a function 87 88error: cannot use `#[inline(always)]` with `#[target_feature]` 89 --> $DIR/invalid-attribute.rs:63:1 90 | 91LL | #[inline(always)] 92 | ^^^^^^^^^^^^^^^^^ 93 94error: aborting due to 12 previous errors 95