Skip to content

Commit a32afa3

Browse files
committed
Make PlaceRef lifetimes of classify_drop_access_kind be both 'tcx
1 parent 46d85e5 commit a32afa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/borrow_check/diagnostics/conflict_errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
15211521
err.buffer(&mut self.errors_buffer);
15221522
}
15231523

1524-
fn classify_drop_access_kind(&self, place: PlaceRef<'cx, 'tcx>) -> StorageDeadOrDrop<'tcx> {
1524+
fn classify_drop_access_kind(&self, place: PlaceRef<'tcx, 'tcx>) -> StorageDeadOrDrop<'tcx> {
15251525
let tcx = self.infcx.tcx;
15261526
match place.projection {
15271527
[] => StorageDeadOrDrop::LocalStorageDead,

0 commit comments

Comments
 (0)