Separate the lifetimes of the BorrowckInferCtxt from the other borrowed items

This commit is contained in:
Oli Scherer
2024-06-20 13:10:11 +00:00
parent 06c072f158
commit 1c4d0ced58
13 changed files with 41 additions and 39 deletions

View File

@@ -30,7 +30,7 @@ pub(crate) enum AccessKind {
Mutate,
}
impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
impl<'a, 'tcx> MirBorrowckCtxt<'a, '_, 'tcx> {
pub(crate) fn report_mutability_error(
&mut self,
access_place: Place<'tcx>,