diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2018-07-18 16:21:17 -0300 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2018-07-23 13:28:54 +0200 |
| commit | 30313c0ec96ca4a2ab66a08f7affec5a17b281c3 (patch) | |
| tree | fc5b11d06c74f2bc2e34abc49757a86b6a113b75 | |
| parent | caa11dee50eb6f14dae0d0f06d17b23d92d72ff8 (diff) | |
Let lifetimes on find be inferred
| -rw-r--r-- | src/librustc_mir/borrow_check/nll/explain_borrow/find_use.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_mir/borrow_check/nll/explain_borrow/find_use.rs b/src/librustc_mir/borrow_check/nll/explain_borrow/find_use.rs index 9fd9d6cd97c..aa88fa11174 100644 --- a/src/librustc_mir/borrow_check/nll/explain_borrow/find_use.rs +++ b/src/librustc_mir/borrow_check/nll/explain_borrow/find_use.rs @@ -19,10 +19,10 @@ use rustc::ty::{RegionVid, TyCtxt}; use rustc_data_structures::fx::FxHashSet; use util::liveness::{self, DefUse, LivenessMode}; -crate fn find<'cx, 'gcx: 'tcx, 'tcx: 'cx>( - mir: &'cx Mir<'tcx>, - regioncx: &'cx Rc<RegionInferenceContext<'tcx>>, - tcx: TyCtxt<'cx, 'gcx, 'tcx>, +crate fn find<'tcx>( + mir: &Mir<'tcx>, + regioncx: &Rc<RegionInferenceContext<'tcx>>, + tcx: TyCtxt<'_, '_, 'tcx>, region_vid: RegionVid, start_point: Location, ) -> Option<Cause> { |
