fix errors

This commit is contained in:
Deadbeef 2023-04-03 15:11:30 +00:00
parent fc01b4b63c
commit 25fdea009e
5 changed files with 113 additions and 105 deletions

View file

@ -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,

View file

@ -727,7 +727,7 @@ impl SubdiagnosticKind {
fields,
AllowMultipleAlternatives::Yes,
);
code.set_once(code_init, span);
code.set_once(code_init, path_span);
}
(
"applicability",