Skip to content

Commit ff55ec0

Browse files
authoredOct 19, 2024
Rollup merge of #131899 - compiler-errors:placeholder, r=lqd
Mark unexpected variant res suggestion as having placeholders Fixes #131878
2 parents 1cc036d + 1617501 commit ff55ec0

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_hir_typeck/src

1 file changed

+1
-1
lines changed
 

‎compiler/rustc_hir_typeck/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ fn report_unexpected_variant_res(
419419
}
420420
}
421421

422-
err.multipart_suggestion_verbose(descr, suggestion, Applicability::MaybeIncorrect);
422+
err.multipart_suggestion_verbose(descr, suggestion, Applicability::HasPlaceholders);
423423
err
424424
}
425425
Res::Def(DefKind::Variant, _) if expr.is_none() => {

0 commit comments

Comments
 (0)