]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/mem_categorization.rs
rustc: use DefId instead of CodeExtent for FreeRegion's scope.
[rust.git] / src / librustc / middle / mem_categorization.rs
index c489689d588f7dacb7af88b9994c9f3446120856..8e25c6facf24d7432a83b73e68f1ad172ac1007e 100644 (file)
@@ -790,7 +790,7 @@ fn env_deref(&self,
             // The environment of a closure is guaranteed to
             // outlive any bindings introduced in the body of the
             // closure itself.
-            scope: Some(self.tcx().call_site_extent(upvar_id.closure_expr_id)),
+            scope: self.tcx().hir.local_def_id(upvar_id.closure_expr_id),
             bound_region: ty::BrEnv
         }));