We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a9fc48 commit 5c25ff5Copy full SHA for 5c25ff5
compiler/rustc_macros/src/diagnostics/utils.rs
@@ -616,8 +616,6 @@ impl SubdiagnosticVariant {
616
return Ok(None);
617
}
618
619
- let span = attr.span().unwrap();
620
-
621
let name = attr.path().segments.last().unwrap().ident.to_string();
622
let name = name.as_str();
623
@@ -667,6 +665,8 @@ impl SubdiagnosticVariant {
667
665
668
666
};
669
+ let span = attr.span().unwrap();
+
670
let list = match &attr.meta {
671
Meta::List(list) => {
672
// An attribute with properties, such as `#[suggestion(code = "...")]` or
0 commit comments