]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_hir_typeck/src/expr_use_visitor.rs
Merge from rustc
[rust.git] / compiler / rustc_hir_typeck / src / expr_use_visitor.rs
index 03b174c77955fb400eab47aa6071b3cec6bef94a..7774ffc9b9793ea8ac6a93a0e41b9ca196514a71 100644 (file)
@@ -756,8 +756,8 @@ fn walk_pat(
     /// - When reporting the Place back to the Delegate, ensure that the UpvarId uses the enclosing
     /// closure as the DefId.
     fn walk_captures(&mut self, closure_expr: &hir::Closure<'_>) {
-        fn upvar_is_local_variable<'tcx>(
-            upvars: Option<&'tcx FxIndexMap<hir::HirId, hir::Upvar>>,
+        fn upvar_is_local_variable(
+            upvars: Option<&FxIndexMap<hir::HirId, hir::Upvar>>,
             upvar_id: hir::HirId,
             body_owner_is_closure: bool,
         ) -> bool {