Skip to content

Commit

Permalink
Rollup merge of #131899 - compiler-errors:placeholder, r=lqd
Browse files Browse the repository at this point in the history
Mark unexpected variant res suggestion as having placeholders

Fixes #131878
  • Loading branch information
matthiaskrgr authored Oct 19, 2024
2 parents 1cc036d + 1617501 commit ff55ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_hir_typeck/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() => {
Expand Down

0 comments on commit ff55ec0

Please sign in to comment.