Skip to content

Commit eb67eca

Browse files
committed
Make PlaceRef lifetimes of describe_field be both 'tcx
1 parent 6f23650 commit eb67eca

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_mir/borrow_check/diagnostics

1 file changed

+1
-1
lines changed

src/librustc_mir/borrow_check/diagnostics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
303303
}
304304

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

0 commit comments

Comments
 (0)