about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-02-03 11:22:35 -0500
committerJoshua Nelson <jyn514@gmail.com>2021-05-19 22:55:59 -0400
commite652f88d726f9d47a66919f0d267239cc112048a (patch)
tree2b96b098a205b6726fbc4c9735fc39688e0b96a6
parent3e827cc21e0734edd26170e8d1481f0d66a1426b (diff)
downloadrust-e652f88d726f9d47a66919f0d267239cc112048a.tar.gz
rust-e652f88d726f9d47a66919f0d267239cc112048a.zip
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.
-rw-r--r--src/build_helper/lib.rs1
1 files changed, 1 insertions, 0 deletions
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,