Skip to content

Commit d0be42d

Browse files
committed
Remove unnecessary lifetime from UnsafeInferVarsVisitor.
1 parent 2e8db5e commit d0be42d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_hir_typeck/src/fallback.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -603,12 +603,12 @@ fn compute_unsafe_infer_vars<'a, 'tcx>(
603603
root_ctxt.tcx.hir().maybe_body_owned_by(body_id).expect("body id must have an owner");
604604
let mut res = UnordMap::default();
605605

606-
struct UnsafeInferVarsVisitor<'a, 'tcx, 'r> {
606+
struct UnsafeInferVarsVisitor<'a, 'tcx> {
607607
root_ctxt: &'a TypeckRootCtxt<'tcx>,
608-
res: &'r mut UnordMap<ty::TyVid, (HirId, Span, UnsafeUseReason)>,
608+
res: &'a mut UnordMap<ty::TyVid, (HirId, Span, UnsafeUseReason)>,
609609
}
610610

611-
impl Visitor<'_> for UnsafeInferVarsVisitor<'_, '_, '_> {
611+
impl Visitor<'_> for UnsafeInferVarsVisitor<'_, '_> {
612612
fn visit_expr(&mut self, ex: &'_ hir::Expr<'_>) {
613613
let typeck_results = self.root_ctxt.typeck_results.borrow();
614614

0 commit comments

Comments
 (0)