1
1
error: 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
3
3
|
4
4
LL | #[inline = "2100"] fn f() { }
5
5
| ^^^^^^^^^^^^^^^^^^
@@ -9,7 +9,7 @@ LL | #[inline = "2100"] fn f() { }
9
9
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
10
10
11
11
error[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
13
13
|
14
14
LL | #[inline]
15
15
| ^^^^^^^^^
@@ -24,7 +24,7 @@ LL | | }
24
24
| |_- not a function or closure
25
25
26
26
error: 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
28
28
|
29
29
LL | #[no_link]
30
30
| ^^^^^^^^^^
@@ -39,7 +39,7 @@ LL | | }
39
39
| |_- not an `extern crate` item
40
40
41
41
error: 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
43
43
|
44
44
LL | #[export_name = "2200"]
45
45
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -54,79 +54,79 @@ LL | | }
54
54
| |_- not a function or static
55
55
56
56
error[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
58
58
|
59
59
LL | mod inner { #![inline] }
60
60
| ------------^^^^^^^^^^-- not a function or closure
61
61
62
62
error[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
64
64
|
65
65
LL | #[inline] struct S;
66
66
| ^^^^^^^^^ --------- not a function or closure
67
67
68
68
error[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
70
70
|
71
71
LL | #[inline] type T = S;
72
72
| ^^^^^^^^^ ----------- not a function or closure
73
73
74
74
error[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
76
76
|
77
77
LL | #[inline] impl S { }
78
78
| ^^^^^^^^^ ---------- not a function or closure
79
79
80
80
error: 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
82
82
|
83
83
LL | mod inner { #![no_link] }
84
84
| ------------^^^^^^^^^^^-- not an `extern crate` item
85
85
86
86
error: 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
88
88
|
89
89
LL | #[no_link] fn f() { }
90
90
| ^^^^^^^^^^ ---------- not an `extern crate` item
91
91
92
92
error: 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
94
94
|
95
95
LL | #[no_link] struct S;
96
96
| ^^^^^^^^^^ --------- not an `extern crate` item
97
97
98
98
error: 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
100
100
|
101
101
LL | #[no_link]type T = S;
102
102
| ^^^^^^^^^^----------- not an `extern crate` item
103
103
104
104
error: 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
106
106
|
107
107
LL | #[no_link] impl S { }
108
108
| ^^^^^^^^^^ ---------- not an `extern crate` item
109
109
110
110
error: 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
112
112
|
113
113
LL | mod inner { #![export_name="2200"] }
114
114
| ------------^^^^^^^^^^^^^^^^^^^^^^-- not a function or static
115
115
116
116
error: 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
118
118
|
119
119
LL | #[export_name = "2200"] struct S;
120
120
| ^^^^^^^^^^^^^^^^^^^^^^^ --------- not a function or static
121
121
122
122
error: 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
124
124
|
125
125
LL | #[export_name = "2200"] type T = S;
126
126
| ^^^^^^^^^^^^^^^^^^^^^^^ ----------- not a function or static
127
127
128
128
error: 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
130
130
|
131
131
LL | #[export_name = "2200"] impl S { }
132
132
| ^^^^^^^^^^^^^^^^^^^^^^^ ---------- not a function or static
0 commit comments