File tree Expand file tree Collapse file tree 5 files changed +24
-14
lines changed Expand file tree Collapse file tree 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
1313LL | | }
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-
2216error[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
3731LL | #[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+
4040error: aborting due to 5 previous errors
4141
4242For 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`...
1010LL | 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
1419error: aborting due to previous error
1520
Original file line number Diff line number Diff 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
914error: aborting due to previous error
1015
Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ error: #[target_feature(..)] can only be applied to `unsafe` function
2828LL | #[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+
3137error: 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
3743LL | 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-
4646error: aborting due to 7 previous errors
4747
Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ LL | #[wasm_custom_section = "foo"] //~ ERROR: only allowed on consts
2323 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2424
2525error: only allowed on consts
26- --> $DIR/not-const.rs:25 :1
26+ --> $DIR/not-const.rs:28 :1
2727 |
2828LL | #[wasm_custom_section = "foo"] //~ ERROR: only allowed on consts
2929 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3030
3131error: only allowed on consts
32- --> $DIR/not-const.rs:28 :1
32+ --> $DIR/not-const.rs:25 :1
3333 |
3434LL | #[wasm_custom_section = "foo"] //~ ERROR: only allowed on consts
3535 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments