diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-10-19 17:25:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-19 17:25:34 +0200 |
| commit | ff55ec03364712f386b313f3d97025fb85f1a9ab (patch) | |
| tree | dfd862ec7ba8cdef3f32eddcbe48b1c8ebe8b8e1 /compiler | |
| parent | 1cc036d18bf4a30cd85582565c2d2e1a152f347f (diff) | |
| parent | 1617501eeaef60bf80378f6736f210113bb68132 (diff) | |
| download | rust-ff55ec03364712f386b313f3d97025fb85f1a9ab.tar.gz rust-ff55ec03364712f386b313f3d97025fb85f1a9ab.zip | |
Rollup merge of #131899 - compiler-errors:placeholder, r=lqd
Mark unexpected variant res suggestion as having placeholders Fixes #131878
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_hir_typeck/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_typeck/src/lib.rs b/compiler/rustc_hir_typeck/src/lib.rs index 6b0a897faba..9e36f7a9aea 100644 --- a/compiler/rustc_hir_typeck/src/lib.rs +++ b/compiler/rustc_hir_typeck/src/lib.rs @@ -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() => { |
