]> git.lizzy.rs Git - rust.git/commitdiff
If the linker segfaulted, don't emit it as a warning.
authorkennytm <kennytm@gmail.com>
Sat, 4 Nov 2017 17:47:02 +0000 (01:47 +0800)
committerkennytm <kennytm@gmail.com>
Sun, 5 Nov 2017 19:53:40 +0000 (03:53 +0800)
Prevent spuriously breaking UI tests.
See https://github.com/rust-lang/rust/pull/45489#issuecomment-340134944.

src/librustc_trans/back/link.rs

index 907693ea8a379ee179908b9132eefaf70cc02dcf..1961acf53a695232c920fe0144fa8f198fdbc645 100644 (file)
@@ -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 {