Skip to content

Commit 2360446

Browse files
committed
Bless tests
1 parent 79ac2dc commit 2360446

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/test/ui/attributes/multiple-invalid.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | #[inline]
77
LL | const FOO: u8 = 0;
88
| ------------------ not a function or closure
99

10-
error: attribute should be applied to a function
10+
error: `#[target_feature]` attribute should be applied to a function
1111
--> $DIR/multiple-invalid.rs:6:1
1212
|
1313
LL | #[target_feature(enable = "sse2")]

src/test/ui/feature-gates/feature-gate-simd-ffi.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
error: use of SIMD type `LocalSimd` in FFI is highly experimental and may result in invalid code
1+
error: use of SIMD type `LocalSimd` in FFI is unstable
22
--> $DIR/feature-gate-simd-ffi.rs:9:17
33
|
44
LL | fn baz() -> LocalSimd;
55
| ^^^^^^^^^
66
|
77
= help: add `#![feature(simd_ffi)]` to the crate attributes to enable
88

9-
error: use of SIMD type `LocalSimd` in FFI is highly experimental and may result in invalid code
9+
error: use of SIMD type `LocalSimd` in FFI is unstable
1010
--> $DIR/feature-gate-simd-ffi.rs:10:15
1111
|
1212
LL | fn qux(x: LocalSimd);

src/test/ui/macros/issue-68060.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: attribute should be applied to a function
1+
error: `#[target_feature]` attribute should be applied to a function
22
--> $DIR/issue-68060.rs:4:13
33
|
44
LL | #[target_feature(enable = "")]

src/test/ui/target-feature/invalid-attribute.stderr

+8-8
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ LL | fn bar() {}
3434
= note: see issue #69098 <https://github.com/rust-lang/rust/issues/69098> for more information
3535
= help: add `#![feature(target_feature_11)]` to the crate attributes to enable
3636

37-
error: attribute should be applied to a function
37+
error: `#[target_feature]` attribute should be applied to a function
3838
--> $DIR/invalid-attribute.rs:35:1
3939
|
4040
LL | #[target_feature(enable = "sse2")]
@@ -43,7 +43,7 @@ LL |
4343
LL | mod another {}
4444
| -------------- not a function
4545

46-
error: attribute should be applied to a function
46+
error: `#[target_feature]` attribute should be applied to a function
4747
--> $DIR/invalid-attribute.rs:40:1
4848
|
4949
LL | #[target_feature(enable = "sse2")]
@@ -52,7 +52,7 @@ LL |
5252
LL | const FOO: usize = 7;
5353
| --------------------- not a function
5454

55-
error: attribute should be applied to a function
55+
error: `#[target_feature]` attribute should be applied to a function
5656
--> $DIR/invalid-attribute.rs:45:1
5757
|
5858
LL | #[target_feature(enable = "sse2")]
@@ -61,7 +61,7 @@ LL |
6161
LL | struct Foo;
6262
| ----------- not a function
6363

64-
error: attribute should be applied to a function
64+
error: `#[target_feature]` attribute should be applied to a function
6565
--> $DIR/invalid-attribute.rs:50:1
6666
|
6767
LL | #[target_feature(enable = "sse2")]
@@ -70,7 +70,7 @@ LL |
7070
LL | enum Bar {}
7171
| ----------- not a function
7272

73-
error: attribute should be applied to a function
73+
error: `#[target_feature]` attribute should be applied to a function
7474
--> $DIR/invalid-attribute.rs:55:1
7575
|
7676
LL | #[target_feature(enable = "sse2")]
@@ -83,7 +83,7 @@ LL | | f2: u16,
8383
LL | | }
8484
| |_- not a function
8585

86-
error: attribute should be applied to a function
86+
error: `#[target_feature]` attribute should be applied to a function
8787
--> $DIR/invalid-attribute.rs:63:1
8888
|
8989
LL | #[target_feature(enable = "sse2")]
@@ -98,7 +98,7 @@ error: cannot use `#[inline(always)]` with `#[target_feature]`
9898
LL | #[inline(always)]
9999
| ^^^^^^^^^^^^^^^^^
100100

101-
error: attribute should be applied to a function
101+
error: `#[target_feature]` attribute should be applied to a function
102102
--> $DIR/invalid-attribute.rs:86:5
103103
|
104104
LL | #[target_feature(enable = "sse2")]
@@ -110,7 +110,7 @@ LL | | bar();
110110
LL | | }
111111
| |_____- not a function
112112

113-
error: attribute should be applied to a function
113+
error: `#[target_feature]` attribute should be applied to a function
114114
--> $DIR/invalid-attribute.rs:94:5
115115
|
116116
LL | #[target_feature(enable = "sse2")]

0 commit comments

Comments
 (0)