diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2018-07-18 16:33:30 -0300 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2018-07-23 13:28:54 +0200 |
| commit | e4e84fd8ff25c2e033b4efaba3ef55a57713083c (patch) | |
| tree | 74e7443c1bae5adcec8d89486036ff011f4e9681 | |
| parent | 30313c0ec96ca4a2ab66a08f7affec5a17b281c3 (diff) | |
| download | rust-e4e84fd8ff25c2e033b4efaba3ef55a57713083c.tar.gz rust-e4e84fd8ff25c2e033b4efaba3ef55a57713083c.zip | |
Let mir reference lifetime be inferred
| -rw-r--r-- | src/librustc_mir/dataflow/impls/borrows.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_mir/dataflow/impls/borrows.rs b/src/librustc_mir/dataflow/impls/borrows.rs index 5bf54286875..995d1340aca 100644 --- a/src/librustc_mir/dataflow/impls/borrows.rs +++ b/src/librustc_mir/dataflow/impls/borrows.rs @@ -53,8 +53,8 @@ pub struct Borrows<'a, 'gcx: 'tcx, 'tcx: 'a> { _nonlexical_regioncx: Rc<RegionInferenceContext<'tcx>>, } -fn precompute_borrows_out_of_scope<'a, 'tcx>( - mir: &'a Mir<'tcx>, +fn precompute_borrows_out_of_scope<'tcx>( + mir: &Mir<'tcx>, regioncx: &Rc<RegionInferenceContext<'tcx>>, borrows_out_of_scope_at_location: &mut FxHashMap<Location, Vec<BorrowIndex>>, borrow_index: BorrowIndex, |
