mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-02 18:12:51 +00:00
Rollup merge of #131899 - compiler-errors:placeholder, r=lqd
Mark unexpected variant res suggestion as having placeholders Fixes #131878
This commit is contained in:
commit
ff55ec0336
@ -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