Skip to content

Commit

Permalink
Mark unexpected variant res suggestion as having placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Oct 18, 2024
1 parent 1350eea commit 1617501
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 1617501

Please sign in to comment.