Skip to content

Commit

Permalink
Unrolled build for rust-lang#131899
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#131899 - compiler-errors:placeholder, r=lqd

Mark unexpected variant res suggestion as having placeholders

Fixes rust-lang#131878
  • Loading branch information
rust-timer authored Oct 19, 2024
2 parents a2a1206 + 1617501 commit 73c97b6
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 73c97b6

Please sign in to comment.