about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorEliza Weisman <eliza@buoyant.io>2021-10-07 10:48:48 -0700
committerEliza Weisman <eliza@buoyant.io>2021-10-07 10:48:48 -0700
commite00eac8b9c4af0bd6baa4b645773fdfa86829fcb (patch)
treecf154a93ee01fc8e5b5855ddc9d0a61674cf5f5d /compiler/rustc_codegen_ssa/src
parent928c787fcee7a15f20da3407d479b69da601644a (diff)
downloadrust-e00eac8b9c4af0bd6baa4b645773fdfa86829fcb.tar.gz
rust-e00eac8b9c4af0bd6baa4b645773fdfa86829fcb.zip
use structured fields in some existing warnings
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/link.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs
index ed15b464872..19eff1a3a3c 100644
--- a/compiler/rustc_codegen_ssa/src/back/link.rs
+++ b/compiler/rustc_codegen_ssa/src/back/link.rs
@@ -844,8 +844,8 @@ fn link_natively<'a, B: ArchiveBuilder<'a>>(
         if out.contains(msg_segv) || out.contains(msg_bus) {
             warn!(
                 "looks like the linker segfaulted when we tried to call it, \
-                 automatically retrying again. cmd = {:?}, out = {}.",
-                cmd, out,
+                 automatically retrying again",
+                ?cmd, %out,
             );
             continue;
         }
@@ -853,9 +853,8 @@ fn link_natively<'a, B: ArchiveBuilder<'a>>(
         if is_illegal_instruction(&output.status) {
             warn!(
                 "looks like the linker hit an illegal instruction when we \
-                 tried to call it, automatically retrying again. cmd = {:?}, ]\
-                 out = {}, status = {}.",
-                cmd, out, output.status,
+                 tried to call it, automatically retrying again."
+                ?cmd, %out, status = %output.status,
             );
             continue;
         }