about summary refs log tree commit diff
path: root/compiler/rustc_macros/src/diagnostics/utils.rs
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2023-04-03 15:11:30 +0000
committerDeadbeef <ent3rm4n@gmail.com>2023-04-06 04:55:58 +0000
commit25fdea009ef0db01134d17cf97cd09b507beca99 (patch)
treea48b7bad24ef7e044e000254c25f8763100fe677 /compiler/rustc_macros/src/diagnostics/utils.rs
parentfc01b4b63c5336a0f296b049525e18798b95b374 (diff)
downloadrust-25fdea009ef0db01134d17cf97cd09b507beca99.tar.gz
rust-25fdea009ef0db01134d17cf97cd09b507beca99.zip
fix errors
Diffstat (limited to 'compiler/rustc_macros/src/diagnostics/utils.rs')
-rw-r--r--compiler/rustc_macros/src/diagnostics/utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_macros/src/diagnostics/utils.rs b/compiler/rustc_macros/src/diagnostics/utils.rs
index bc104941c38..838347ecb61 100644
--- a/compiler/rustc_macros/src/diagnostics/utils.rs
+++ b/compiler/rustc_macros/src/diagnostics/utils.rs
@@ -727,7 +727,7 @@ impl SubdiagnosticKind {
                         fields,
                         AllowMultipleAlternatives::Yes,
                     );
-                    code.set_once(code_init, span);
+                    code.set_once(code_init, path_span);
                 }
                 (
                     "applicability",