about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2017-11-05 01:47:02 +0800
committerkennytm <kennytm@gmail.com>2017-11-06 03:53:40 +0800
commitd517668a088715e932c373fb18dfffdc58831829 (patch)
treea0814cd47540dc31e8551c2e2c87432bbc4a148f
parent33400fbbcd26caf98fe316b4f2ab81efdc9c40f2 (diff)
downloadrust-d517668a088715e932c373fb18dfffdc58831829.tar.gz
rust-d517668a088715e932c373fb18dfffdc58831829.zip
If the linker segfaulted, don't emit it as a warning.
Prevent spuriously breaking UI tests.
See https://github.com/rust-lang/rust/pull/45489#issuecomment-340134944.
-rw-r--r--src/librustc_trans/back/link.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/librustc_trans/back/link.rs b/src/librustc_trans/back/link.rs
index 907693ea8a3..1961acf53a6 100644
--- a/src/librustc_trans/back/link.rs
+++ b/src/librustc_trans/back/link.rs
@@ -671,11 +671,12 @@ fn link_natively(sess: &Session,
             break
         }
 
-        sess.struct_warn("looks like the linker segfaulted when we tried to \
-                          call it, automatically retrying again")
-            .note(&format!("{:?}", cmd))
-            .note(&out)
-            .emit();
+        warn!(
+            "looks like the linker segfaulted when we tried to call it, \
+             automatically retrying again. cmd = {:?}, out = {}.",
+            cmd,
+            out,
+        );
     }
 
     match prog {