about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorMax Wase <max.vvase@gmail.com>2021-10-13 01:33:12 +0300
committerGitHub <noreply@github.com>2021-10-13 01:33:12 +0300
commit3e0360f3d43442b9d78cb1ba777e13a58506bce6 (patch)
tree285c017219563b85f30141f972df125be5705786 /compiler/rustc_errors/src
parent36e050b85f5fc9acd27ff5e8cda57a36070f43e2 (diff)
parent044674337a180c494b7e6fdce4b20dca93324b2a (diff)
downloadrust-3e0360f3d43442b9d78cb1ba777e13a58506bce6.tar.gz
rust-3e0360f3d43442b9d78cb1ba777e13a58506bce6.zip
Merge branch 'master' into is-symlink-stabilization
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;
         }
     };