Skip to content

Commit d517668

Browse files
committed
If the linker segfaulted, don't emit it as a warning.
Prevent spuriously breaking UI tests. See rust-lang#45489 (comment).
1 parent 33400fb commit d517668

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/librustc_trans/back/link.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -671,11 +671,12 @@ fn link_natively(sess: &Session,
671671
break
672672
}
673673

674-
sess.struct_warn("looks like the linker segfaulted when we tried to \
675-
call it, automatically retrying again")
676-
.note(&format!("{:?}", cmd))
677-
.note(&out)
678-
.emit();
674+
warn!(
675+
"looks like the linker segfaulted when we tried to call it, \
676+
automatically retrying again. cmd = {:?}, out = {}.",
677+
cmd,
678+
out,
679+
);
679680
}
680681

681682
match prog {

0 commit comments

Comments
 (0)