11error: attribute must be of the form `#[inline]` or `#[inline(always|never)]`
2- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:22 :5
2+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:19 :5
33 |
44LL | #[inline = "2100"] fn f() { }
55 | ^^^^^^^^^^^^^^^^^^
@@ -9,7 +9,7 @@ LL | #[inline = "2100"] fn f() { }
99 = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
1010
1111error[E0518]: attribute should be applied to function or closure
12- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:13 :1
12+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:10 :1
1313 |
1414LL | #[inline]
1515 | ^^^^^^^^^
@@ -24,7 +24,7 @@ LL | | }
2424 | |_- not a function or closure
2525
2626error: attribute should be applied to an `extern crate` item
27- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:41 :1
27+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:38 :1
2828 |
2929LL | #[no_link]
3030 | ^^^^^^^^^^
@@ -39,7 +39,7 @@ LL | | }
3939 | |_- not an `extern crate` item
4040
4141error: attribute should be applied to a function or static
42- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:67 :1
42+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:64 :1
4343 |
4444LL | #[export_name = "2200"]
4545 | ^^^^^^^^^^^^^^^^^^^^^^^
@@ -54,79 +54,79 @@ LL | | }
5454 | |_- not a function or static
5555
5656error[E0518]: attribute should be applied to function or closure
57- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:18 :17
57+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:15 :17
5858 |
5959LL | mod inner { #![inline] }
6060 | ------------^^^^^^^^^^-- not a function or closure
6161
6262error[E0518]: attribute should be applied to function or closure
63- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:28 :5
63+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:25 :5
6464 |
6565LL | #[inline] struct S;
6666 | ^^^^^^^^^ --------- not a function or closure
6767
6868error[E0518]: attribute should be applied to function or closure
69- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:32 :5
69+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:29 :5
7070 |
7171LL | #[inline] type T = S;
7272 | ^^^^^^^^^ ----------- not a function or closure
7373
7474error[E0518]: attribute should be applied to function or closure
75- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:36 :5
75+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:33 :5
7676 |
7777LL | #[inline] impl S { }
7878 | ^^^^^^^^^ ---------- not a function or closure
7979
8080error: attribute should be applied to an `extern crate` item
81- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:46 :17
81+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:43 :17
8282 |
8383LL | mod inner { #![no_link] }
8484 | ------------^^^^^^^^^^^-- not an `extern crate` item
8585
8686error: attribute should be applied to an `extern crate` item
87- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:50 :5
87+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:47 :5
8888 |
8989LL | #[no_link] fn f() { }
9090 | ^^^^^^^^^^ ---------- not an `extern crate` item
9191
9292error: attribute should be applied to an `extern crate` item
93- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:54 :5
93+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:51 :5
9494 |
9595LL | #[no_link] struct S;
9696 | ^^^^^^^^^^ --------- not an `extern crate` item
9797
9898error: attribute should be applied to an `extern crate` item
99- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:58 :5
99+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:55 :5
100100 |
101101LL | #[no_link]type T = S;
102102 | ^^^^^^^^^^----------- not an `extern crate` item
103103
104104error: attribute should be applied to an `extern crate` item
105- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:62 :5
105+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:59 :5
106106 |
107107LL | #[no_link] impl S { }
108108 | ^^^^^^^^^^ ---------- not an `extern crate` item
109109
110110error: attribute should be applied to a function or static
111- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:72 :17
111+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:69 :17
112112 |
113113LL | mod inner { #![export_name="2200"] }
114114 | ------------^^^^^^^^^^^^^^^^^^^^^^-- not a function or static
115115
116116error: attribute should be applied to a function or static
117- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:78 :5
117+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:75 :5
118118 |
119119LL | #[export_name = "2200"] struct S;
120120 | ^^^^^^^^^^^^^^^^^^^^^^^ --------- not a function or static
121121
122122error: attribute should be applied to a function or static
123- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:82 :5
123+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:79 :5
124124 |
125125LL | #[export_name = "2200"] type T = S;
126126 | ^^^^^^^^^^^^^^^^^^^^^^^ ----------- not a function or static
127127
128128error: attribute should be applied to a function or static
129- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:86 :5
129+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:83 :5
130130 |
131131LL | #[export_name = "2200"] impl S { }
132132 | ^^^^^^^^^^^^^^^^^^^^^^^ ---------- not a function or static
0 commit comments