Skip to content

Commit

Permalink
Rollup merge of rust-lang#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 rust-lang#131878
  • Loading branch information
workingjubilee authored Oct 19, 2024
2 parents 22489ee + 1617501 commit 4f217f2
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 4f217f2

Please sign in to comment.