infer: use derive more
Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
parent
f8b628bce4
commit
913f597402
4 changed files with 46 additions and 49 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue