Fix #117033
This commit is contained in:
parent
26f340a0d5
commit
a134f1624c
2 changed files with 10 additions and 0 deletions
|
@ -884,6 +884,9 @@ fn collect_nonexhaustive_missing_variants<'p, 'tcx>(
|
|||
cx: &MatchCheckCtxt<'p, 'tcx>,
|
||||
column: &[&DeconstructedPat<'p, 'tcx>],
|
||||
) -> Vec<WitnessPat<'tcx>> {
|
||||
if column.is_empty() {
|
||||
return Vec::new();
|
||||
}
|
||||
let ty = column[0].ty();
|
||||
let pcx = &PatCtxt { cx, ty, span: DUMMY_SP, is_top_level: false };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue