diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2020-03-04 17:22:28 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2020-03-04 17:22:28 -0300 |
| commit | eb67eca74af8765dc4f5579655783b51f0270b49 (patch) | |
| tree | d8490d7629df729f399b40bb01ae770bd6ba15a2 /src | |
| parent | 6f236504570de4210eeae6e883cf8ed6196e0d98 (diff) | |
| download | rust-eb67eca74af8765dc4f5579655783b51f0270b49.tar.gz rust-eb67eca74af8765dc4f5579655783b51f0270b49.zip | |
Make PlaceRef lifetimes of describe_field be both 'tcx
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_mir/borrow_check/diagnostics/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/borrow_check/diagnostics/mod.rs b/src/librustc_mir/borrow_check/diagnostics/mod.rs index ed95c0419e9..2f054b8dd52 100644 --- a/src/librustc_mir/borrow_check/diagnostics/mod.rs +++ b/src/librustc_mir/borrow_check/diagnostics/mod.rs @@ -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: [] } => { |
