diff options
| author | Max Wase <max.vvase@gmail.com> | 2021-10-13 01:33:12 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-13 01:33:12 +0300 |
| commit | 3e0360f3d43442b9d78cb1ba777e13a58506bce6 (patch) | |
| tree | 285c017219563b85f30141f972df125be5705786 /compiler/rustc_errors/src | |
| parent | 36e050b85f5fc9acd27ff5e8cda57a36070f43e2 (diff) | |
| parent | 044674337a180c494b7e6fdce4b20dca93324b2a (diff) | |
| download | rust-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.rs | 2 |
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; } }; |
