@@ -197,13 +197,14 @@ macro_rules! e {
197
197
198
198
// FIXME(ctest): ctest can't handle `const extern` functions, we should be able to remove this
199
199
// cfg completely.
200
+ // FIXME(ctest): ctest can't handle `$(,)?` so we use `$(,)*` which isn't quite correct.
200
201
cfg_if ! {
201
202
if #[ cfg( feature = "const-extern-fn" ) ] {
202
203
/// Define an `unsafe` function that is const as long as `const-extern-fn` is enabled.
203
204
macro_rules! f {
204
205
( $(
205
206
$( #[ $attr: meta] ) *
206
- pub $( { $constness: ident} ) * fn $i: ident( $( $arg: ident: $argty: ty) , * $( , ) ? ) -> $ret: ty
207
+ pub $( { $constness: ident} ) * fn $i: ident( $( $arg: ident: $argty: ty) , * $( , ) * ) -> $ret: ty
207
208
$body: block
208
209
) * ) => ( $(
209
210
#[ inline]
@@ -217,7 +218,7 @@ cfg_if! {
217
218
macro_rules! safe_f {
218
219
( $(
219
220
$( #[ $attr: meta] ) *
220
- pub $( { $constness: ident} ) * fn $i: ident( $( $arg: ident: $argty: ty) , * $( , ) ? ) -> $ret: ty
221
+ pub $( { $constness: ident} ) * fn $i: ident( $( $arg: ident: $argty: ty) , * $( , ) * ) -> $ret: ty
221
222
$body: block
222
223
) * ) => ( $(
223
224
#[ inline]
@@ -231,7 +232,7 @@ cfg_if! {
231
232
macro_rules! const_fn {
232
233
( $(
233
234
$( #[ $attr: meta] ) *
234
- $( { $constness: ident} ) * fn $i: ident( $( $arg: ident: $argty: ty) , * $( , ) ? ) -> $ret: ty
235
+ $( { $constness: ident} ) * fn $i: ident( $( $arg: ident: $argty: ty) , * $( , ) * ) -> $ret: ty
235
236
$body: block
236
237
) * ) => ( $(
237
238
#[ inline]
@@ -245,7 +246,7 @@ cfg_if! {
245
246
macro_rules! f {
246
247
( $(
247
248
$( #[ $attr: meta] ) *
248
- pub $( { $constness: ident} ) * fn $i: ident( $( $arg: ident: $argty: ty) , * $( , ) ? ) -> $ret: ty
249
+ pub $( { $constness: ident} ) * fn $i: ident( $( $arg: ident: $argty: ty) , * $( , ) * ) -> $ret: ty
249
250
$body: block
250
251
) * ) => ( $(
251
252
#[ inline]
@@ -259,7 +260,7 @@ cfg_if! {
259
260
macro_rules! safe_f {
260
261
( $(
261
262
$( #[ $attr: meta] ) *
262
- pub $( { $constness: ident} ) * fn $i: ident( $( $arg: ident: $argty: ty) , * $( , ) ? ) -> $ret: ty
263
+ pub $( { $constness: ident} ) * fn $i: ident( $( $arg: ident: $argty: ty) , * $( , ) * ) -> $ret: ty
263
264
$body: block
264
265
) * ) => ( $(
265
266
#[ inline]
@@ -273,7 +274,7 @@ cfg_if! {
273
274
macro_rules! const_fn {
274
275
( $(
275
276
$( #[ $attr: meta] ) *
276
- $( { $constness: ident} ) * fn $i: ident( $( $arg: ident: $argty: ty) , * $( , ) ? ) -> $ret: ty
277
+ $( { $constness: ident} ) * fn $i: ident( $( $arg: ident: $argty: ty) , * $( , ) * ) -> $ret: ty
277
278
$body: block
278
279
) * ) => ( $(
279
280
#[ inline]
0 commit comments