about summary refs log tree commit diff
path: root/compiler/rustc_errors/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_errors/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_errors/src')
-rw-r--r--compiler/rustc_errors/src/emitter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/emitter.rs b/compiler/rustc_errors/src/emitter.rs
index 29f352ae585..778d58eeadc 100644
--- a/compiler/rustc_errors/src/emitter.rs
+++ b/compiler/rustc_errors/src/emitter.rs
@@ -2308,7 +2308,7 @@ pub fn is_case_difference(sm: &SourceMap, suggested: &str, sp: Span) -> bool {
     let found = match sm.span_to_snippet(sp) {
         Ok(snippet) => snippet,
         Err(e) => {
-            warn!("Invalid span {:?}. Err={:?}", sp, e);
+            warn!(error = ?e, "Invalid span {:?}", sp);
             return false;
         }
     };