about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src/errors.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-07-10 18:55:51 -0400
committerMichael Goulet <michael@errs.io>2024-07-10 18:56:06 -0400
commit12ae282987762a71cf146efa3fb6c6fcf4956475 (patch)
tree8cae3f07bfee58d1b3a1bd33ac4782d38c2d6755 /compiler/rustc_resolve/src/errors.rs
parentdf72e478b0179581c985ec53ebd6a0d14a330366 (diff)
downloadrust-12ae282987762a71cf146efa3fb6c6fcf4956475.tar.gz
rust-12ae282987762a71cf146efa3fb6c6fcf4956475.zip
Fix diagnostic and add a test for it
Diffstat (limited to 'compiler/rustc_resolve/src/errors.rs')
-rw-r--r--compiler/rustc_resolve/src/errors.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/errors.rs b/compiler/rustc_resolve/src/errors.rs
index 0620f3d709e..cd6503ae444 100644
--- a/compiler/rustc_resolve/src/errors.rs
+++ b/compiler/rustc_resolve/src/errors.rs
@@ -1089,8 +1089,8 @@ pub(crate) struct ToolWasAlreadyRegistered {
 #[derive(Diagnostic)]
 #[diag(resolve_tool_only_accepts_identifiers)]
 pub(crate) struct ToolOnlyAcceptsIdentifiers {
-    #[label]
     #[primary_span]
+    #[label]
     pub(crate) span: Span,
     pub(crate) tool: Symbol,
 }