Skip to content

Commit 1356b76

Browse files
committed
[macro_metavar_expr_concat] Dogfooding
1 parent 97ac52f commit 1356b76

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

library/std/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@
302302
#![feature(let_chains)]
303303
#![feature(link_cfg)]
304304
#![feature(linkage)]
305+
#![feature(macro_metavar_expr_concat)]
305306
#![feature(min_exhaustive_patterns)]
306307
#![feature(min_specialization)]
307308
#![feature(must_not_suspend)]

library/std/src/sys/pal/unix/weak.rs

+2-8
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,7 @@ pub(crate) macro syscall {
172172
// (not paths).
173173
use libc::*;
174174

175-
syscall(
176-
concat_idents!(SYS_, $name),
177-
$($arg_name),*
178-
) as $ret
175+
syscall(${concat(SYS_, $name)}, $($arg_name),*) as $ret
179176
}
180177
}
181178
)
@@ -189,10 +186,7 @@ pub(crate) macro raw_syscall {
189186
// (not paths).
190187
use libc::*;
191188

192-
syscall(
193-
concat_idents!(SYS_, $name),
194-
$($arg_name),*
195-
) as $ret
189+
syscall(${concat(SYS_, $name)}, $($arg_name),*) as $ret
196190
}
197191
)
198192
}

0 commit comments

Comments
 (0)