Mark unexpected variant res suggestion as having placeholders

This commit is contained in:
Michael Goulet 2024-10-18 12:30:18 -04:00
parent 1350eead10
commit 1617501eea

View File

@ -419,7 +419,7 @@ fn report_unexpected_variant_res(
} }
} }
err.multipart_suggestion_verbose(descr, suggestion, Applicability::MaybeIncorrect); err.multipart_suggestion_verbose(descr, suggestion, Applicability::HasPlaceholders);
err err
} }
Res::Def(DefKind::Variant, _) if expr.is_none() => { Res::Def(DefKind::Variant, _) if expr.is_none() => {