fix errors
This commit is contained in:
parent
fc01b4b63c
commit
25fdea009e
5 changed files with 113 additions and 105 deletions
|
@ -422,6 +422,7 @@ impl<'parent, 'a> SubdiagnosticDeriveVariantBuilder<'parent, 'a> {
|
|||
list.parse_nested_meta(|nested| {
|
||||
if nested.path.is_ident("code") {
|
||||
let code_field = new_code_ident();
|
||||
let span = nested.path.span().unwrap();
|
||||
let formatting_init = build_suggestion_code(
|
||||
&code_field,
|
||||
nested,
|
||||
|
|
|
@ -727,7 +727,7 @@ impl SubdiagnosticKind {
|
|||
fields,
|
||||
AllowMultipleAlternatives::Yes,
|
||||
);
|
||||
code.set_once(code_init, span);
|
||||
code.set_once(code_init, path_span);
|
||||
}
|
||||
(
|
||||
"applicability",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue