Remove pattern_arena from RustcMatchCheckCtxt

This commit is contained in:
Nadrieril
2024-01-25 04:35:09 +01:00
parent be77cf86ba
commit f65fe3ba59
3 changed files with 10 additions and 10 deletions

View File

@@ -23,7 +23,10 @@ impl<'tcx> Uncovered<'tcx> {
span: Span,
cx: &RustcMatchCheckCtxt<'p, 'tcx>,
witnesses: Vec<WitnessPat<'p, 'tcx>>,
) -> Self {
) -> Self
where
'tcx: 'p,
{
let witness_1 = cx.hoist_witness_pat(witnesses.get(0).unwrap());
Self {
span,