Skip to content

Commit

Permalink
Make PlaceRef lifetimes of classify_drop_access_kind be both 'tcx
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Mar 4, 2020
1 parent 46d85e5 commit a32afa3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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,
Expand Down

0 comments on commit a32afa3

Please sign in to comment.