1
Fork 0

Remove unused field of RegionVariableOrigin

This commit is contained in:
Matthew Jasper 2021-11-11 23:15:47 +00:00
parent 936238a92b
commit 3ea84e879a
3 changed files with 4 additions and 4 deletions

View file

@ -162,7 +162,7 @@ impl<'a, 'tcx> ConfirmContext<'a, 'tcx> {
match &pick.autoref_or_ptr_adjustment {
Some(probe::AutorefOrPtrAdjustment::Autoref { mutbl, unsize }) => {
let region = self.next_region_var(infer::Autoref(self.span, pick.item));
let region = self.next_region_var(infer::Autoref(self.span));
target = self.tcx.mk_ref(region, ty::TypeAndMut { mutbl: *mutbl, ty: target });
let mutbl = match mutbl {
hir::Mutability::Not => AutoBorrowMutability::Not,