Make PlaceRef lifetimes of classify_drop_access_kind be both 'tcx

This commit is contained in:
Santiago Pastorino 2020-03-04 18:10:01 -03:00
parent 46d85e519b
commit a32afa33c8
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF

View file

@ -1521,7 +1521,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
err.buffer(&mut self.errors_buffer);
}
fn classify_drop_access_kind(&self, place: PlaceRef<'cx, 'tcx>) -> StorageDeadOrDrop<'tcx> {
fn classify_drop_access_kind(&self, place: PlaceRef<'tcx, 'tcx>) -> StorageDeadOrDrop<'tcx> {
let tcx = self.infcx.tcx;
match place.projection {
[] => StorageDeadOrDrop::LocalStorageDead,