Skip to content

Commit 6293950

Browse files
committed
fix tests branch
1 parent 22f856c commit 6293950

File tree

5 files changed

+24
-14
lines changed

5 files changed

+24
-14
lines changed

src/test/ui/feature-gate/issue-43106-gating-of-inline.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ LL | | //~^ ERROR attribute should be applied to function or closure
1313
LL | | }
1414
| |_- not a function or closure
1515

16-
error[E0518]: attribute should be applied to function or closure
17-
--> $DIR/issue-43106-gating-of-inline.rs:24:17
18-
|
19-
LL | mod inner { #![inline="2100"] }
20-
| ------------^^^^^^^^^^^^^^^^^-- not a function or closure
21-
2216
error[E0518]: attribute should be applied to function or closure
2317
--> $DIR/issue-43106-gating-of-inline.rs:29:5
2418
|
@@ -37,6 +31,12 @@ error[E0518]: attribute should be applied to function or closure
3731
LL | #[inline = "2100"] impl S { }
3832
| ^^^^^^^^^^^^^^^^^^ ---------- not a function or closure
3933

34+
error[E0518]: attribute should be applied to function or closure
35+
--> $DIR/issue-43106-gating-of-inline.rs:24:17
36+
|
37+
LL | mod inner { #![inline="2100"] }
38+
| ------------^^^^^^^^^^^^^^^^^-- not a function or closure
39+
4040
error: aborting due to 5 previous errors
4141

4242
For more information about this error, try `rustc --explain E0518`.

src/test/ui/issue-12511.stderr

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ note: ...which requires computing the supertraits of `t2`...
1010
LL | trait t2 : t1 {
1111
| ^^^^^^^^^^^^^
1212
= note: ...which again requires computing the supertraits of `t1`, completing the cycle
13+
note: cycle used when processing ``
14+
--> $DIR/issue-12511.rs:11:1
15+
|
16+
LL | trait t1 : t2 {
17+
| ^^^^^^^^^^^^^
1318

1419
error: aborting due to previous error
1520

src/test/ui/resolve/issue-23305.stderr

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ LL | impl ToNbt<Self> {}
55
| ^^^^
66
|
77
= note: ...which again requires processing `<impl at $DIR/issue-23305.rs:15:1: 15:20>`, completing the cycle
8+
note: cycle used when processing ``
9+
--> $DIR/issue-23305.rs:11:1
10+
|
11+
LL | pub trait ToNbt<T> {
12+
| ^^^^^^^^^^^^^^^^^^
813

914
error: aborting due to previous error
1015

src/test/ui/target-feature-wrong.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ error: #[target_feature(..)] can only be applied to `unsafe` function
2828
LL | #[target_feature(enable = "sse2")]
2929
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3030

31+
error: cannot use #[inline(always)] with #[target_feature]
32+
--> $DIR/target-feature-wrong.rs:41:1
33+
|
34+
LL | #[inline(always)]
35+
| ^^^^^^^^^^^^^^^^^
36+
3137
error: attribute should be applied to a function
3238
--> $DIR/target-feature-wrong.rs:37:1
3339
|
@@ -37,11 +43,5 @@ LL | //~^ ERROR: should be applied to a function
3743
LL | mod another {}
3844
| -------------- not a function
3945

40-
error: cannot use #[inline(always)] with #[target_feature]
41-
--> $DIR/target-feature-wrong.rs:41:1
42-
|
43-
LL | #[inline(always)]
44-
| ^^^^^^^^^^^^^^^^^
45-
4646
error: aborting due to 7 previous errors
4747

src/test/ui/wasm-custom-section/not-const.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ LL | #[wasm_custom_section = "foo"] //~ ERROR: only allowed on consts
2323
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2424

2525
error: only allowed on consts
26-
--> $DIR/not-const.rs:25:1
26+
--> $DIR/not-const.rs:28:1
2727
|
2828
LL | #[wasm_custom_section = "foo"] //~ ERROR: only allowed on consts
2929
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3030

3131
error: only allowed on consts
32-
--> $DIR/not-const.rs:28:1
32+
--> $DIR/not-const.rs:25:1
3333
|
3434
LL | #[wasm_custom_section = "foo"] //~ ERROR: only allowed on consts
3535
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)