| ... | ... | @@ -1,5 +1,5 @@ |
| 1 | 1 | error: `#[target_feature]` attribute cannot be used on extern crates |
| 2 | | --> $DIR/invalid-attribute.rs:5:1 |
| 2 | --> $DIR/invalid-attribute.rs:11:1 |
| 3 | 3 | | |
| 4 | 4 | LL | #[target_feature(enable = "sse2")] |
| 5 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| ... | ... | @@ -7,7 +7,7 @@ LL | #[target_feature(enable = "sse2")] |
| 7 | 7 | = help: `#[target_feature]` can only be applied to functions |
| 8 | 8 | |
| 9 | 9 | error: `#[target_feature]` attribute cannot be used on use statements |
| 10 | | --> $DIR/invalid-attribute.rs:9:1 |
| 10 | --> $DIR/invalid-attribute.rs:15:1 |
| 11 | 11 | | |
| 12 | 12 | LL | #[target_feature(enable = "sse2")] |
| 13 | 13 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| ... | ... | @@ -15,7 +15,7 @@ LL | #[target_feature(enable = "sse2")] |
| 15 | 15 | = help: `#[target_feature]` can only be applied to functions |
| 16 | 16 | |
| 17 | 17 | error: `#[target_feature]` attribute cannot be used on foreign modules |
| 18 | | --> $DIR/invalid-attribute.rs:13:1 |
| 18 | --> $DIR/invalid-attribute.rs:19:1 |
| 19 | 19 | | |
| 20 | 20 | LL | #[target_feature(enable = "sse2")] |
| 21 | 21 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| ... | ... | @@ -23,7 +23,7 @@ LL | #[target_feature(enable = "sse2")] |
| 23 | 23 | = help: `#[target_feature]` can only be applied to functions |
| 24 | 24 | |
| 25 | 25 | error[E0539]: malformed `target_feature` attribute input |
| 26 | | --> $DIR/invalid-attribute.rs:17:1 |
| 26 | --> $DIR/invalid-attribute.rs:23:1 |
| 27 | 27 | | |
| 28 | 28 | LL | #[target_feature = "+sse2"] |
| 29 | 29 | | ^^^^^^^^^^^^^^^^^---------^ |
| ... | ... | @@ -32,7 +32,7 @@ LL | #[target_feature = "+sse2"] |
| 32 | 32 | | help: must be of the form: `#[target_feature(enable = "feat1, feat2")]` |
| 33 | 33 | |
| 34 | 34 | error[E0539]: malformed `target_feature` attribute input |
| 35 | | --> $DIR/invalid-attribute.rs:23:1 |
| 35 | --> $DIR/invalid-attribute.rs:29:1 |
| 36 | 36 | | |
| 37 | 37 | LL | #[target_feature(bar)] |
| 38 | 38 | | ^^^^^^^^^^^^^^^^^---^^ |
| ... | ... | @@ -41,7 +41,7 @@ LL | #[target_feature(bar)] |
| 41 | 41 | | help: must be of the form: `#[target_feature(enable = "feat1, feat2")]` |
| 42 | 42 | |
| 43 | 43 | error[E0539]: malformed `target_feature` attribute input |
| 44 | | --> $DIR/invalid-attribute.rs:26:1 |
| 44 | --> $DIR/invalid-attribute.rs:32:1 |
| 45 | 45 | | |
| 46 | 46 | LL | #[target_feature(disable = "baz")] |
| 47 | 47 | | ^^^^^^^^^^^^^^^^^-------^^^^^^^^^^ |
| ... | ... | @@ -50,7 +50,7 @@ LL | #[target_feature(disable = "baz")] |
| 50 | 50 | | help: must be of the form: `#[target_feature(enable = "feat1, feat2")]` |
| 51 | 51 | |
| 52 | 52 | error: `#[target_feature]` attribute cannot be used on modules |
| 53 | | --> $DIR/invalid-attribute.rs:31:1 |
| 53 | --> $DIR/invalid-attribute.rs:37:1 |
| 54 | 54 | | |
| 55 | 55 | LL | #[target_feature(enable = "sse2")] |
| 56 | 56 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| ... | ... | @@ -58,7 +58,7 @@ LL | #[target_feature(enable = "sse2")] |
| 58 | 58 | = help: `#[target_feature]` can only be applied to functions |
| 59 | 59 | |
| 60 | 60 | error: `#[target_feature]` attribute cannot be used on constants |
| 61 | | --> $DIR/invalid-attribute.rs:35:1 |
| 61 | --> $DIR/invalid-attribute.rs:41:1 |
| 62 | 62 | | |
| 63 | 63 | LL | #[target_feature(enable = "sse2")] |
| 64 | 64 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| ... | ... | @@ -66,7 +66,7 @@ LL | #[target_feature(enable = "sse2")] |
| 66 | 66 | = help: `#[target_feature]` can only be applied to functions |
| 67 | 67 | |
| 68 | 68 | error: `#[target_feature]` attribute cannot be used on structs |
| 69 | | --> $DIR/invalid-attribute.rs:39:1 |
| 69 | --> $DIR/invalid-attribute.rs:45:1 |
| 70 | 70 | | |
| 71 | 71 | LL | #[target_feature(enable = "sse2")] |
| 72 | 72 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| ... | ... | @@ -74,7 +74,7 @@ LL | #[target_feature(enable = "sse2")] |
| 74 | 74 | = help: `#[target_feature]` can only be applied to functions |
| 75 | 75 | |
| 76 | 76 | error: `#[target_feature]` attribute cannot be used on enums |
| 77 | | --> $DIR/invalid-attribute.rs:43:1 |
| 77 | --> $DIR/invalid-attribute.rs:49:1 |
| 78 | 78 | | |
| 79 | 79 | LL | #[target_feature(enable = "sse2")] |
| 80 | 80 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| ... | ... | @@ -82,7 +82,7 @@ LL | #[target_feature(enable = "sse2")] |
| 82 | 82 | = help: `#[target_feature]` can only be applied to functions |
| 83 | 83 | |
| 84 | 84 | error: `#[target_feature]` attribute cannot be used on unions |
| 85 | | --> $DIR/invalid-attribute.rs:47:1 |
| 85 | --> $DIR/invalid-attribute.rs:53:1 |
| 86 | 86 | | |
| 87 | 87 | LL | #[target_feature(enable = "sse2")] |
| 88 | 88 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| ... | ... | @@ -90,7 +90,7 @@ LL | #[target_feature(enable = "sse2")] |
| 90 | 90 | = help: `#[target_feature]` can only be applied to functions |
| 91 | 91 | |
| 92 | 92 | error: `#[target_feature]` attribute cannot be used on type aliases |
| 93 | | --> $DIR/invalid-attribute.rs:54:1 |
| 93 | --> $DIR/invalid-attribute.rs:60:1 |
| 94 | 94 | | |
| 95 | 95 | LL | #[target_feature(enable = "sse2")] |
| 96 | 96 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| ... | ... | @@ -98,7 +98,7 @@ LL | #[target_feature(enable = "sse2")] |
| 98 | 98 | = help: `#[target_feature]` can only be applied to functions |
| 99 | 99 | |
| 100 | 100 | error: `#[target_feature]` attribute cannot be used on traits |
| 101 | | --> $DIR/invalid-attribute.rs:58:1 |
| 101 | --> $DIR/invalid-attribute.rs:64:1 |
| 102 | 102 | | |
| 103 | 103 | LL | #[target_feature(enable = "sse2")] |
| 104 | 104 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| ... | ... | @@ -106,7 +106,7 @@ LL | #[target_feature(enable = "sse2")] |
| 106 | 106 | = help: `#[target_feature]` can only be applied to functions |
| 107 | 107 | |
| 108 | 108 | error: `#[target_feature]` attribute cannot be used on statics |
| 109 | | --> $DIR/invalid-attribute.rs:69:1 |
| 109 | --> $DIR/invalid-attribute.rs:75:1 |
| 110 | 110 | | |
| 111 | 111 | LL | #[target_feature(enable = "sse2")] |
| 112 | 112 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| ... | ... | @@ -114,7 +114,7 @@ LL | #[target_feature(enable = "sse2")] |
| 114 | 114 | = help: `#[target_feature]` can only be applied to functions |
| 115 | 115 | |
| 116 | 116 | error: `#[target_feature]` attribute cannot be used on trait impl blocks |
| 117 | | --> $DIR/invalid-attribute.rs:73:1 |
| 117 | --> $DIR/invalid-attribute.rs:79:1 |
| 118 | 118 | | |
| 119 | 119 | LL | #[target_feature(enable = "sse2")] |
| 120 | 120 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| ... | ... | @@ -122,7 +122,7 @@ LL | #[target_feature(enable = "sse2")] |
| 122 | 122 | = help: `#[target_feature]` can only be applied to functions |
| 123 | 123 | |
| 124 | 124 | error: `#[target_feature]` attribute cannot be used on inherent impl blocks |
| 125 | | --> $DIR/invalid-attribute.rs:79:1 |
| 125 | --> $DIR/invalid-attribute.rs:85:1 |
| 126 | 126 | | |
| 127 | 127 | LL | #[target_feature(enable = "sse2")] |
| 128 | 128 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| ... | ... | @@ -130,7 +130,7 @@ LL | #[target_feature(enable = "sse2")] |
| 130 | 130 | = help: `#[target_feature]` can only be applied to functions |
| 131 | 131 | |
| 132 | 132 | error: `#[target_feature]` attribute cannot be used on expressions |
| 133 | | --> $DIR/invalid-attribute.rs:100:5 |
| 133 | --> $DIR/invalid-attribute.rs:106:5 |
| 134 | 134 | | |
| 135 | 135 | LL | #[target_feature(enable = "sse2")] |
| 136 | 136 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| ... | ... | @@ -138,7 +138,7 @@ LL | #[target_feature(enable = "sse2")] |
| 138 | 138 | = help: `#[target_feature]` can only be applied to functions |
| 139 | 139 | |
| 140 | 140 | error: `#[target_feature]` attribute cannot be used on closures |
| 141 | | --> $DIR/invalid-attribute.rs:106:5 |
| 141 | --> $DIR/invalid-attribute.rs:112:5 |
| 142 | 142 | | |
| 143 | 143 | LL | #[target_feature(enable = "sse2")] |
| 144 | 144 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| ... | ... | @@ -146,7 +146,7 @@ LL | #[target_feature(enable = "sse2")] |
| 146 | 146 | = help: `#[target_feature]` can be applied to functions and methods |
| 147 | 147 | |
| 148 | 148 | error[E0658]: cannot use `#[inline(always)]` with `#[target_feature]` |
| 149 | | --> $DIR/invalid-attribute.rs:62:1 |
| 149 | --> $DIR/invalid-attribute.rs:68:1 |
| 150 | 150 | | |
| 151 | 151 | LL | #[inline(always)] |
| 152 | 152 | | ^^^^^^^^^^^^^^^^^ |
| ... | ... | @@ -156,13 +156,13 @@ LL | #[inline(always)] |
| 156 | 156 | = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| 157 | 157 | |
| 158 | 158 | error: the feature named `foo` is not valid for this target |
| 159 | | --> $DIR/invalid-attribute.rs:20:18 |
| 159 | --> $DIR/invalid-attribute.rs:26:18 |
| 160 | 160 | | |
| 161 | 161 | LL | #[target_feature(enable = "foo")] |
| 162 | 162 | | ^^^^^^^^^^^^^^ `foo` is not valid for this target |
| 163 | 163 | |
| 164 | 164 | error[E0046]: not all trait items implemented, missing: `foo` |
| 165 | | --> $DIR/invalid-attribute.rs:75:1 |
| 165 | --> $DIR/invalid-attribute.rs:81:1 |
| 166 | 166 | | |
| 167 | 167 | LL | impl Quux for u8 {} |
| 168 | 168 | | ^^^^^^^^^^^^^^^^ missing `foo` in implementation |
| ... | ... | @@ -171,7 +171,7 @@ LL | fn foo(); |
| 171 | 171 | | --------- `foo` from trait |
| 172 | 172 | |
| 173 | 173 | error: `#[target_feature(..)]` cannot be applied to safe trait method |
| 174 | | --> $DIR/invalid-attribute.rs:89:5 |
| 174 | --> $DIR/invalid-attribute.rs:95:5 |
| 175 | 175 | | |
| 176 | 176 | LL | #[target_feature(enable = "sse2")] |
| 177 | 177 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot be applied to safe trait method |
| ... | ... | @@ -180,13 +180,13 @@ LL | fn foo() {} |
| 180 | 180 | | -------- not an `unsafe` function |
| 181 | 181 | |
| 182 | 182 | error[E0053]: method `foo` has an incompatible type for trait |
| 183 | | --> $DIR/invalid-attribute.rs:92:5 |
| 183 | --> $DIR/invalid-attribute.rs:98:5 |
| 184 | 184 | | |
| 185 | 185 | LL | fn foo() {} |
| 186 | 186 | | ^^^^^^^^ expected safe fn, found unsafe fn |
| 187 | 187 | | |
| 188 | 188 | note: type in trait |
| 189 | | --> $DIR/invalid-attribute.rs:84:5 |
| 189 | --> $DIR/invalid-attribute.rs:90:5 |
| 190 | 190 | | |
| 191 | 191 | LL | fn foo(); |
| 192 | 192 | | ^^^^^^^^^ |
| ... | ... | @@ -194,14 +194,24 @@ LL | fn foo(); |
| 194 | 194 | found signature `#[target_features] fn()` |
| 195 | 195 | |
| 196 | 196 | error: the feature named `+sse2` is not valid for this target |
| 197 | | --> $DIR/invalid-attribute.rs:111:18 |
| 197 | --> $DIR/invalid-attribute.rs:117:18 |
| 198 | 198 | | |
| 199 | 199 | LL | #[target_feature(enable = "+sse2")] |
| 200 | 200 | | ^^^^^^^^^^^^^^^^ `+sse2` is not valid for this target |
| 201 | 201 | | |
| 202 | | = help: consider removing the leading `+` in the feature name |
| 202 | help: consider removing the leading `+` in the feature name |
| 203 | | |
| 204 | LL - #[target_feature(enable = "+sse2")] |
| 205 | LL + #[target_feature(enable = "sse2")] |
| 206 | | |
| 207 | |
| 208 | error: the feature named `+sse5` is not valid for this target |
| 209 | --> $DIR/invalid-attribute.rs:122:18 |
| 210 | | |
| 211 | LL | #[target_feature(enable = "+sse5")] |
| 212 | | ^^^^^^^^^^^^^^^^ `+sse5` is not valid for this target |
| 203 | 213 | |
| 204 | | error: aborting due to 24 previous errors |
| 214 | error: aborting due to 25 previous errors |
| 205 | 215 | |
| 206 | 216 | Some errors have detailed explanations: E0046, E0053, E0539, E0658. |
| 207 | 217 | For more information about an error, try `rustc --explain E0046`. |