1- error: only foreign or `unsafe extern "C"` functions may be C-variadic
1+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
22 --> $DIR/variadic-ffi-semantic-restrictions.rs:6:19
33 |
44LL | fn f1_1(x: isize, ...) {}
55 | ^^^
66
7- error: only foreign or `unsafe extern "C"` functions may be C-variadic
7+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
88 --> $DIR/variadic-ffi-semantic-restrictions.rs:9:9
99 |
1010LL | fn f1_2(...) {}
1111 | ^^^
1212
13- error: only foreign or `unsafe extern "C"` functions may be C-variadic
13+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
1414 --> $DIR/variadic-ffi-semantic-restrictions.rs:12:30
1515 |
1616LL | extern "C" fn f2_1(x: isize, ...) {}
1717 | ^^^
1818
19- error: only foreign or `unsafe extern "C"` functions may be C-variadic
19+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
2020 --> $DIR/variadic-ffi-semantic-restrictions.rs:15:20
2121 |
2222LL | extern "C" fn f2_2(...) {}
@@ -28,19 +28,19 @@ error: `...` must be the last argument of a C-variadic function
2828LL | extern "C" fn f2_3(..., x: isize) {}
2929 | ^^^
3030
31- error: only foreign or `unsafe extern "C"` functions may be C-variadic
31+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
3232 --> $DIR/variadic-ffi-semantic-restrictions.rs:18:20
3333 |
3434LL | extern "C" fn f2_3(..., x: isize) {}
3535 | ^^^
3636
37- error: only foreign or `unsafe extern "C"` functions may be C-variadic
37+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
3838 --> $DIR/variadic-ffi-semantic-restrictions.rs:22:30
3939 |
4040LL | extern "C" fn f3_1(x: isize, ...) {}
4141 | ^^^
4242
43- error: only foreign or `unsafe extern "C"` functions may be C-variadic
43+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
4444 --> $DIR/variadic-ffi-semantic-restrictions.rs:25:20
4545 |
4646LL | extern "C" fn f3_2(...) {}
@@ -52,7 +52,7 @@ error: `...` must be the last argument of a C-variadic function
5252LL | extern "C" fn f3_3(..., x: isize) {}
5353 | ^^^
5454
55- error: only foreign or `unsafe extern "C"` functions may be C-variadic
55+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
5656 --> $DIR/variadic-ffi-semantic-restrictions.rs:28:20
5757 |
5858LL | extern "C" fn f3_3(..., x: isize) {}
@@ -70,7 +70,7 @@ error: functions cannot be both `const` and C-variadic
7070LL | const extern "C" fn f4_2(x: isize, ...) {}
7171 | ^^^^^ `const` because of this ^^^ C-variadic because of this
7272
73- error: only foreign or `unsafe extern "C"` functions may be C-variadic
73+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
7474 --> $DIR/variadic-ffi-semantic-restrictions.rs:36:36
7575 |
7676LL | const extern "C" fn f4_2(x: isize, ...) {}
@@ -91,7 +91,7 @@ LL | const extern "C" fn f4_3(..., x: isize, ...) {}
9191 | | C-variadic because of this
9292 | `const` because of this
9393
94- error: only foreign or `unsafe extern "C"` functions may be C-variadic
94+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
9595 --> $DIR/variadic-ffi-semantic-restrictions.rs:41:26
9696 |
9797LL | const extern "C" fn f4_3(..., x: isize, ...) {}
@@ -103,13 +103,13 @@ error: `...` must be the last argument of a C-variadic function
103103LL | fn e_f2(..., x: isize);
104104 | ^^^
105105
106- error: only foreign or `unsafe extern "C"` functions may be C-variadic
106+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
107107 --> $DIR/variadic-ffi-semantic-restrictions.rs:54:23
108108 |
109109LL | fn i_f1(x: isize, ...) {}
110110 | ^^^
111111
112- error: only foreign or `unsafe extern "C"` functions may be C-variadic
112+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
113113 --> $DIR/variadic-ffi-semantic-restrictions.rs:56:13
114114 |
115115LL | fn i_f2(...) {}
@@ -121,7 +121,7 @@ error: `...` must be the last argument of a C-variadic function
121121LL | fn i_f3(..., x: isize, ...) {}
122122 | ^^^
123123
124- error: only foreign or `unsafe extern "C"` functions may be C-variadic
124+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
125125 --> $DIR/variadic-ffi-semantic-restrictions.rs:58:13
126126 |
127127LL | fn i_f3(..., x: isize, ...) {}
@@ -133,7 +133,7 @@ error: `...` must be the last argument of a C-variadic function
133133LL | fn i_f4(..., x: isize, ...) {}
134134 | ^^^
135135
136- error: only foreign or `unsafe extern "C"` functions may be C-variadic
136+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
137137 --> $DIR/variadic-ffi-semantic-restrictions.rs:61:13
138138 |
139139LL | fn i_f4(..., x: isize, ...) {}
@@ -147,31 +147,31 @@ LL | const fn i_f5(x: isize, ...) {}
147147 | |
148148 | `const` because of this
149149
150- error: only foreign or `unsafe extern "C"` functions may be C-variadic
150+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
151151 --> $DIR/variadic-ffi-semantic-restrictions.rs:64:29
152152 |
153153LL | const fn i_f5(x: isize, ...) {}
154154 | ^^^
155155
156- error: only foreign or `unsafe extern "C"` functions may be C-variadic
156+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
157157 --> $DIR/variadic-ffi-semantic-restrictions.rs:71:23
158158 |
159159LL | fn t_f1(x: isize, ...) {}
160160 | ^^^
161161
162- error: only foreign or `unsafe extern "C"` functions may be C-variadic
162+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
163163 --> $DIR/variadic-ffi-semantic-restrictions.rs:73:23
164164 |
165165LL | fn t_f2(x: isize, ...);
166166 | ^^^
167167
168- error: only foreign or `unsafe extern "C"` functions may be C-variadic
168+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
169169 --> $DIR/variadic-ffi-semantic-restrictions.rs:75:13
170170 |
171171LL | fn t_f3(...) {}
172172 | ^^^
173173
174- error: only foreign or `unsafe extern "C"` functions may be C-variadic
174+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
175175 --> $DIR/variadic-ffi-semantic-restrictions.rs:77:13
176176 |
177177LL | fn t_f4(...);
@@ -183,7 +183,7 @@ error: `...` must be the last argument of a C-variadic function
183183LL | fn t_f5(..., x: isize) {}
184184 | ^^^
185185
186- error: only foreign or `unsafe extern "C"` functions may be C-variadic
186+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
187187 --> $DIR/variadic-ffi-semantic-restrictions.rs:79:13
188188 |
189189LL | fn t_f5(..., x: isize) {}
@@ -195,7 +195,7 @@ error: `...` must be the last argument of a C-variadic function
195195LL | fn t_f6(..., x: isize);
196196 | ^^^
197197
198- error: only foreign or `unsafe extern "C"` functions may be C-variadic
198+ error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind "` functions may have a C-variadic arg
199199 --> $DIR/variadic-ffi-semantic-restrictions.rs:82:13
200200 |
201201LL | fn t_f6(..., x: isize);
0 commit comments