File tree 5 files changed +24
-14
lines changed 5 files changed +24
-14
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,6 @@ LL | | //~^ ERROR attribute should be applied to function or closure
13
13
LL | | }
14
14
| |_- not a function or closure
15
15
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
-
22
16
error[E0518]: attribute should be applied to function or closure
23
17
--> $DIR/issue-43106-gating-of-inline.rs:29:5
24
18
|
@@ -37,6 +31,12 @@ error[E0518]: attribute should be applied to function or closure
37
31
LL | #[inline = "2100"] impl S { }
38
32
| ^^^^^^^^^^^^^^^^^^ ---------- not a function or closure
39
33
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
+
40
40
error: aborting due to 5 previous errors
41
41
42
42
For more information about this error, try `rustc --explain E0518`.
Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ note: ...which requires computing the supertraits of `t2`...
10
10
LL | trait t2 : t1 {
11
11
| ^^^^^^^^^^^^^
12
12
= 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
+ | ^^^^^^^^^^^^^
13
18
14
19
error: aborting due to previous error
15
20
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ LL | impl ToNbt<Self> {}
5
5
| ^^^^
6
6
|
7
7
= 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
+ | ^^^^^^^^^^^^^^^^^^
8
13
9
14
error: aborting due to previous error
10
15
Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ error: #[target_feature(..)] can only be applied to `unsafe` function
28
28
LL | #[target_feature(enable = "sse2")]
29
29
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
30
31
+ error: cannot use #[inline(always)] with #[target_feature]
32
+ --> $DIR/target-feature-wrong.rs:41:1
33
+ |
34
+ LL | #[inline(always)]
35
+ | ^^^^^^^^^^^^^^^^^
36
+
31
37
error: attribute should be applied to a function
32
38
--> $DIR/target-feature-wrong.rs:37:1
33
39
|
@@ -37,11 +43,5 @@ LL | //~^ ERROR: should be applied to a function
37
43
LL | mod another {}
38
44
| -------------- not a function
39
45
40
- error: cannot use #[inline(always)] with #[target_feature]
41
- --> $DIR/target-feature-wrong.rs:41:1
42
- |
43
- LL | #[inline(always)]
44
- | ^^^^^^^^^^^^^^^^^
45
-
46
46
error: aborting due to 7 previous errors
47
47
Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ LL | #[wasm_custom_section = "foo"] //~ ERROR: only allowed on consts
23
23
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
24
25
25
error: only allowed on consts
26
- --> $DIR/not-const.rs:25 :1
26
+ --> $DIR/not-const.rs:28 :1
27
27
|
28
28
LL | #[wasm_custom_section = "foo"] //~ ERROR: only allowed on consts
29
29
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
30
31
31
error: only allowed on consts
32
- --> $DIR/not-const.rs:28 :1
32
+ --> $DIR/not-const.rs:25 :1
33
33
|
34
34
LL | #[wasm_custom_section = "foo"] //~ ERROR: only allowed on consts
35
35
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments