Skip to content

Commit

Permalink
[macro_metavar_expr_concat] Dogfooding
Browse files Browse the repository at this point in the history
  • Loading branch information
c410-f3r committed Aug 1, 2024
1 parent 97ac52f commit 1356b76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions library/std/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@
#![feature(let_chains)]
#![feature(link_cfg)]
#![feature(linkage)]
#![feature(macro_metavar_expr_concat)]
#![feature(min_exhaustive_patterns)]
#![feature(min_specialization)]
#![feature(must_not_suspend)]
Expand Down
10 changes: 2 additions & 8 deletions library/std/src/sys/pal/unix/weak.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,7 @@ pub(crate) macro syscall {
// (not paths).
use libc::*;

syscall(
concat_idents!(SYS_, $name),
$($arg_name),*
) as $ret
syscall(${concat(SYS_, $name)}, $($arg_name),*) as $ret
}
}
)
Expand All @@ -189,10 +186,7 @@ pub(crate) macro raw_syscall {
// (not paths).
use libc::*;

syscall(
concat_idents!(SYS_, $name),
$($arg_name),*
) as $ret
syscall(${concat(SYS_, $name)}, $($arg_name),*) as $ret
}
)
}

0 comments on commit 1356b76

Please sign in to comment.