Make PlaceRef lifetimes of describe_field be both 'tcx

This commit is contained in:
Santiago Pastorino 2020-03-04 17:22:28 -03:00
parent 6f23650457
commit eb67eca74a
No known key found for this signature in database
GPG Key ID: 8131A24E0C79EFAF

View File

@ -303,7 +303,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
}
/// End-user visible description of the `field`nth field of `base`
fn describe_field(&self, place: PlaceRef<'cx, 'tcx>, field: Field) -> String {
fn describe_field(&self, place: PlaceRef<'tcx, 'tcx>, field: Field) -> String {
// FIXME Place2 Make this work iteratively
match place {
PlaceRef { local, projection: [] } => {