Function rustc_mir_build::thir::pattern::check_match::non_exhaustive_match
source · [−]fn non_exhaustive_match<'p, 'tcx>(
cx: &MatchCheckCtxt<'p, 'tcx>,
scrut_ty: Ty<'tcx>,
sp: Span,
witnesses: Vec<DeconstructedPat<'p, 'tcx>>,
arms: &[Arm<'tcx>],
expr_span: Span
)
Expand description
Report that a match is not exhaustive.