about summary refs log tree commit diff
path: root/compiler/rustc_macros/src
diff options
context:
space:
mode:
authorDavid Wood <david.wood@huawei.com>2022-10-14 13:25:59 +0100
committerDavid Wood <david.wood@huawei.com>2022-10-17 09:54:24 +0100
commit913f5974026334dbd2eeb4f39b0e4ea767e1b28d (patch)
tree36c4ce60a7fd934a1e4d2d585b59466199267baa /compiler/rustc_macros/src
parentf8b628bce4fb3f71e660fb7d80e4bc5fdcaaee62 (diff)
downloadrust-913f5974026334dbd2eeb4f39b0e4ea767e1b28d.tar.gz
rust-913f5974026334dbd2eeb4f39b0e4ea767e1b28d.zip
infer: use derive more
Signed-off-by: David Wood <david.wood@huawei.com>
Diffstat (limited to 'compiler/rustc_macros/src')
-rw-r--r--compiler/rustc_macros/src/diagnostics/subdiagnostic.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs b/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs
index 5a42a2cd12d..d1acb713842 100644
--- a/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs
+++ b/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs
@@ -309,6 +309,8 @@ impl<'parent, 'a> SubdiagnosticDeriveVariantBuilder<'parent, 'a> {
                     report_error_if_not_applied_to_span(attr, &info)?;
 
                     let binding = info.binding.binding.clone();
+                    // FIXME(#100717): support `Option<Span>` on `primary_span` like in the
+                    // diagnostic derive
                     self.span_field.set_once(binding, span);
                 }