Skip to content

Commit

Permalink
If the linker segfaulted, don't emit it as a warning.
Browse files Browse the repository at this point in the history
Prevent spuriously breaking UI tests.
See #45489 (comment).
  • Loading branch information
kennytm committed Nov 5, 2017
1 parent 33400fb commit d517668
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/librustc_trans/back/link.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit d517668

Please sign in to comment.