Mark unexpected variant res suggestion as having placeholders
This commit is contained in:
parent
1350eead10
commit
1617501eea
@ -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
|
||||
}
|
||||
Res::Def(DefKind::Variant, _) if expr.is_none() => {
|
||||
|
Loading…
Reference in New Issue
Block a user