Use typedefs to clarify some impls.

And insert some whitespace.
This commit is contained in:
Nicholas Nethercote 2023-11-23 16:26:55 +11:00
parent 1bcbb7c93b
commit b85cba87e4
2 changed files with 5 additions and 2 deletions

View File

@ -104,7 +104,7 @@ where
}
}
impl<'res, 'mir, 'tcx, A> ResultsCursor<'mir, 'tcx, A, ResultsCloned<'res, 'tcx, A>>
impl<'res, 'mir, 'tcx, A> ResultsClonedCursor<'res, 'mir, 'tcx, A>
where
A: Analysis<'tcx> + CloneAnalysis,
{

View File

@ -80,6 +80,7 @@ where
visit_results(body, blocks.map(|(bb, _)| bb), self, vis)
}
}
impl<'tcx, A> Results<'tcx, A>
where
A: Analysis<'tcx>,
@ -92,6 +93,7 @@ where
ResultsCursor::new(body, self)
}
}
impl<'tcx, A> Results<'tcx, A>
where
A: Analysis<'tcx> + CloneAnalysis,
@ -113,7 +115,8 @@ where
self.clone_analysis().into_results_cursor(body)
}
}
impl<'res, 'tcx, A> Results<'tcx, A, &'res EntrySets<'tcx, A>>
impl<'res, 'tcx, A> ResultsCloned<'res, 'tcx, A>
where
A: Analysis<'tcx> + CloneAnalysis,
{