We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
for_host*!()
1 parent da63a8d commit 7efb4bdCopy full SHA for 7efb4bd
src/test.rs
@@ -178,8 +178,8 @@ pub fn this_host_triple() -> String {
178
// Format a string with this host triple.
179
#[macro_export]
180
macro_rules! for_host {
181
- ($s: expr) => {
182
- &format!($s, $crate::test::this_host_triple())
+ ($s:tt $($arg:tt)*) => {
+ &format!($s, $crate::test::this_host_triple() $($arg)*)
183
};
184
}
185
tests/suite/cli_rustup.rs
@@ -15,8 +15,8 @@ use rustup::test::{
15
use rustup::utils::raw;
16
17
macro_rules! for_host_and_home {
18
- ($config:expr, $s: expr) => {
19
- &format!($s, this_host_triple(), $config.rustupdir)
+ ($config:expr, $s:tt $($arg:tt)*) => {
+ &format!($s, this_host_triple(), $config.rustupdir $($arg)*)
20
21
22
0 commit comments