Skip to content

Commit 73c97b6

Browse files
authoredOct 19, 2024
Unrolled build for rust-lang#131899
Rollup merge of rust-lang#131899 - compiler-errors:placeholder, r=lqd Mark unexpected variant res suggestion as having placeholders Fixes rust-lang#131878
2 parents a2a1206 + 1617501 commit 73c97b6

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)