@@ -116,91 +116,79 @@ error: only foreign or `unsafe extern "C"` functions may be C-variadic
116
116
--> $DIR/variadic-ffi-semantic-restrictions.rs:50:13
117
117
|
118
118
LL | fn i_f3(..., x: isize, ...) {}
119
- | ^^^
120
-
121
- error: only foreign or `unsafe extern "C"` functions may be C-variadic
122
- --> $DIR/variadic-ffi-semantic-restrictions.rs:50:28
123
- |
124
- LL | fn i_f3(..., x: isize, ...) {}
125
- | ^^^
119
+ | ^^^ ^^^
126
120
127
121
error: `...` must be the last argument of a C-variadic function
128
- --> $DIR/variadic-ffi-semantic-restrictions.rs:54:13
129
- |
130
- LL | fn i_f4(..., x: isize, ...) {}
131
- | ^^^
132
-
133
- error: only foreign or `unsafe extern "C"` functions may be C-variadic
134
- --> $DIR/variadic-ffi-semantic-restrictions.rs:54:13
122
+ --> $DIR/variadic-ffi-semantic-restrictions.rs:53:13
135
123
|
136
124
LL | fn i_f4(..., x: isize, ...) {}
137
125
| ^^^
138
126
139
127
error: only foreign or `unsafe extern "C"` functions may be C-variadic
140
- --> $DIR/variadic-ffi-semantic-restrictions.rs:54:28
128
+ --> $DIR/variadic-ffi-semantic-restrictions.rs:53:13
141
129
|
142
130
LL | fn i_f4(..., x: isize, ...) {}
143
- | ^^^
131
+ | ^^^ ^^^
144
132
145
133
error: only foreign or `unsafe extern "C"` functions may be C-variadic
146
- --> $DIR/variadic-ffi-semantic-restrictions.rs:61 :23
134
+ --> $DIR/variadic-ffi-semantic-restrictions.rs:59 :23
147
135
|
148
136
LL | fn t_f1(x: isize, ...) {}
149
137
| ^^^
150
138
151
139
error: only foreign or `unsafe extern "C"` functions may be C-variadic
152
- --> $DIR/variadic-ffi-semantic-restrictions.rs:63 :23
140
+ --> $DIR/variadic-ffi-semantic-restrictions.rs:61 :23
153
141
|
154
142
LL | fn t_f2(x: isize, ...);
155
143
| ^^^
156
144
157
145
error: C-variadic function must be declared with at least one named argument
158
- --> $DIR/variadic-ffi-semantic-restrictions.rs:65 :13
146
+ --> $DIR/variadic-ffi-semantic-restrictions.rs:63 :13
159
147
|
160
148
LL | fn t_f3(...) {}
161
149
| ^^^
162
150
163
151
error: only foreign or `unsafe extern "C"` functions may be C-variadic
164
- --> $DIR/variadic-ffi-semantic-restrictions.rs:65 :13
152
+ --> $DIR/variadic-ffi-semantic-restrictions.rs:63 :13
165
153
|
166
154
LL | fn t_f3(...) {}
167
155
| ^^^
168
156
169
157
error: C-variadic function must be declared with at least one named argument
170
- --> $DIR/variadic-ffi-semantic-restrictions.rs:68 :13
158
+ --> $DIR/variadic-ffi-semantic-restrictions.rs:66 :13
171
159
|
172
160
LL | fn t_f4(...);
173
161
| ^^^
174
162
175
163
error: only foreign or `unsafe extern "C"` functions may be C-variadic
176
- --> $DIR/variadic-ffi-semantic-restrictions.rs:68 :13
164
+ --> $DIR/variadic-ffi-semantic-restrictions.rs:66 :13
177
165
|
178
166
LL | fn t_f4(...);
179
167
| ^^^
180
168
181
169
error: `...` must be the last argument of a C-variadic function
182
- --> $DIR/variadic-ffi-semantic-restrictions.rs:71 :13
170
+ --> $DIR/variadic-ffi-semantic-restrictions.rs:69 :13
183
171
|
184
172
LL | fn t_f5(..., x: isize) {}
185
173
| ^^^
186
174
187
175
error: only foreign or `unsafe extern "C"` functions may be C-variadic
188
- --> $DIR/variadic-ffi-semantic-restrictions.rs:71 :13
176
+ --> $DIR/variadic-ffi-semantic-restrictions.rs:69 :13
189
177
|
190
178
LL | fn t_f5(..., x: isize) {}
191
179
| ^^^
192
180
193
181
error: `...` must be the last argument of a C-variadic function
194
- --> $DIR/variadic-ffi-semantic-restrictions.rs:74 :13
182
+ --> $DIR/variadic-ffi-semantic-restrictions.rs:72 :13
195
183
|
196
184
LL | fn t_f6(..., x: isize);
197
185
| ^^^
198
186
199
187
error: only foreign or `unsafe extern "C"` functions may be C-variadic
200
- --> $DIR/variadic-ffi-semantic-restrictions.rs:74 :13
188
+ --> $DIR/variadic-ffi-semantic-restrictions.rs:72 :13
201
189
|
202
190
LL | fn t_f6(..., x: isize);
203
191
| ^^^
204
192
205
- error: aborting due to 34 previous errors
193
+ error: aborting due to 32 previous errors
206
194
0 commit comments