Skip to content

Commit 30313c0

Browse files
spastorinopnkfelix
authored andcommitted
Let lifetimes on find be inferred
1 parent caa11de commit 30313c0

File tree

1 file changed

+4
-4
lines changed
  • src/librustc_mir/borrow_check/nll/explain_borrow

1 file changed

+4
-4
lines changed

src/librustc_mir/borrow_check/nll/explain_borrow/find_use.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ use rustc::ty::{RegionVid, TyCtxt};
1919
use rustc_data_structures::fx::FxHashSet;
2020
use util::liveness::{self, DefUse, LivenessMode};
2121

22-
crate fn find<'cx, 'gcx: 'tcx, 'tcx: 'cx>(
23-
mir: &'cx Mir<'tcx>,
24-
regioncx: &'cx Rc<RegionInferenceContext<'tcx>>,
25-
tcx: TyCtxt<'cx, 'gcx, 'tcx>,
22+
crate fn find<'tcx>(
23+
mir: &Mir<'tcx>,
24+
regioncx: &Rc<RegionInferenceContext<'tcx>>,
25+
tcx: TyCtxt<'_, '_, 'tcx>,
2626
region_vid: RegionVid,
2727
start_point: Location,
2828
) -> Option<Cause> {

0 commit comments

Comments
 (0)