Separate the lifetimes of the `BorrowckInferCtxt` from the other borr… · rust-lang/rust@1c4d0ce

@@ -52,7 +52,7 @@ impl<'tcx> UniverseInfo<'tcx> {

52525353

pub(crate) fn report_error(

5454

&self,

55-

mbcx: &mut MirBorrowckCtxt<'_, 'tcx>,

55+

mbcx: &mut MirBorrowckCtxt<'_, '_, 'tcx>,

5656

placeholder: ty::PlaceholderRegion,

5757

error_element: RegionElement,

5858

cause: ObligationCause<'tcx>,

@@ -151,7 +151,7 @@ trait TypeOpInfo<'tcx> {

151151152152

fn nice_error(

153153

&self,

154-

mbcx: &mut MirBorrowckCtxt<'_, 'tcx>,

154+

mbcx: &mut MirBorrowckCtxt<'_, '_, 'tcx>,

155155

cause: ObligationCause<'tcx>,

156156

placeholder_region: ty::Region<'tcx>,

157157

error_region: Option<ty::Region<'tcx>>,

@@ -160,7 +160,7 @@ trait TypeOpInfo<'tcx> {

160160

#[instrument(level = "debug", skip(self, mbcx))]

161161

fn report_error(

162162

&self,

163-

mbcx: &mut MirBorrowckCtxt<'_, 'tcx>,

163+

mbcx: &mut MirBorrowckCtxt<'_, '_, 'tcx>,

164164

placeholder: ty::PlaceholderRegion,

165165

error_element: RegionElement,

166166

cause: ObligationCause<'tcx>,

@@ -233,7 +233,7 @@ impl<'tcx> TypeOpInfo<'tcx> for PredicateQuery<'tcx> {

233233234234

fn nice_error(

235235

&self,

236-

mbcx: &mut MirBorrowckCtxt<'_, 'tcx>,

236+

mbcx: &mut MirBorrowckCtxt<'_, '_, 'tcx>,

237237

cause: ObligationCause<'tcx>,

238238

placeholder_region: ty::Region<'tcx>,

239239

error_region: Option<ty::Region<'tcx>>,

@@ -270,7 +270,7 @@ where

270270271271

fn nice_error(

272272

&self,

273-

mbcx: &mut MirBorrowckCtxt<'_, 'tcx>,

273+

mbcx: &mut MirBorrowckCtxt<'_, '_, 'tcx>,

274274

cause: ObligationCause<'tcx>,

275275

placeholder_region: ty::Region<'tcx>,

276276

error_region: Option<ty::Region<'tcx>>,

@@ -310,7 +310,7 @@ impl<'tcx> TypeOpInfo<'tcx> for AscribeUserTypeQuery<'tcx> {

310310311311

fn nice_error(

312312

&self,

313-

mbcx: &mut MirBorrowckCtxt<'_, 'tcx>,

313+

mbcx: &mut MirBorrowckCtxt<'_, '_, 'tcx>,

314314

cause: ObligationCause<'tcx>,

315315

placeholder_region: ty::Region<'tcx>,

316316

error_region: Option<ty::Region<'tcx>>,

@@ -336,7 +336,7 @@ impl<'tcx> TypeOpInfo<'tcx> for crate::type_check::InstantiateOpaqueType<'tcx> {

336336337337

fn nice_error(

338338

&self,

339-

mbcx: &mut MirBorrowckCtxt<'_, 'tcx>,

339+

mbcx: &mut MirBorrowckCtxt<'_, '_, 'tcx>,

340340

_cause: ObligationCause<'tcx>,

341341

placeholder_region: ty::Region<'tcx>,

342342

error_region: Option<ty::Region<'tcx>>,