@@ -116,91 +116,79 @@ error: only foreign or `unsafe extern "C"` functions may be C-variadic
116116 --> $DIR/variadic-ffi-semantic-restrictions.rs:50:13
117117 |
118118LL | 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+ | ^^^ ^^^
126120
127121error: `...` 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
135123 |
136124LL | fn i_f4(..., x: isize, ...) {}
137125 | ^^^
138126
139127error: 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
141129 |
142130LL | fn i_f4(..., x: isize, ...) {}
143- | ^^^
131+ | ^^^ ^^^
144132
145133error: 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
147135 |
148136LL | fn t_f1(x: isize, ...) {}
149137 | ^^^
150138
151139error: 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
153141 |
154142LL | fn t_f2(x: isize, ...);
155143 | ^^^
156144
157145error: 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
159147 |
160148LL | fn t_f3(...) {}
161149 | ^^^
162150
163151error: 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
165153 |
166154LL | fn t_f3(...) {}
167155 | ^^^
168156
169157error: 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
171159 |
172160LL | fn t_f4(...);
173161 | ^^^
174162
175163error: 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
177165 |
178166LL | fn t_f4(...);
179167 | ^^^
180168
181169error: `...` 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
183171 |
184172LL | fn t_f5(..., x: isize) {}
185173 | ^^^
186174
187175error: 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
189177 |
190178LL | fn t_f5(..., x: isize) {}
191179 | ^^^
192180
193181error: `...` 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
195183 |
196184LL | fn t_f6(..., x: isize);
197185 | ^^^
198186
199187error: 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
201189 |
202190LL | fn t_f6(..., x: isize);
203191 | ^^^
204192
205- error: aborting due to 34 previous errors
193+ error: aborting due to 32 previous errors
206194
0 commit comments