From e652f88d726f9d47a66919f0d267239cc112048a Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Wed, 3 Feb 2021 11:22:35 -0500 Subject: [PATCH] Add track_caller to `builder_helper::output` If something goes wrong here, showing `fn output` is unhelpful. Show where the command is being run instead. --- src/build_helper/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/build_helper/lib.rs b/src/build_helper/lib.rs index 80f804174ed..b1ec072f3f8 100644 --- a/src/build_helper/lib.rs +++ b/src/build_helper/lib.rs @@ -130,6 +130,7 @@ pub fn make(host: &str) -> PathBuf { } } +#[track_caller] pub fn output(cmd: &mut Command) -> String { let output = match cmd.stderr(Stdio::inherit()).output() { Ok(status) => status, -- 2.44.0