about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2015-08-24 23:41:02 +0300
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2015-08-24 23:41:02 +0300
commit06563fe0b7d64b7552d65a7ab00aa360820f05c5 (patch)
tree83b7d08bd02c8c9be76d94899a5d973bba5e8c8d /src
parent1e507d44505a336fb60ee1dbd121bd986788296e (diff)
downloadrust-06563fe0b7d64b7552d65a7ab00aa360820f05c5.tar.gz
rust-06563fe0b7d64b7552d65a7ab00aa360820f05c5.zip
fix other test
Diffstat (limited to 'src')
-rw-r--r--src/librustc_driver/test.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/librustc_driver/test.rs b/src/librustc_driver/test.rs
index dcc92efc2a2..3277e07dfc1 100644
--- a/src/librustc_driver/test.rs
+++ b/src/librustc_driver/test.rs
@@ -17,7 +17,7 @@ use rustc_lint;
 use rustc_resolve as resolve;
 use rustc_typeck::middle::lang_items;
 use rustc_typeck::middle::free_region::FreeRegionMap;
-use rustc_typeck::middle::region::{self, CodeExtent, DestructionScopeData};
+use rustc_typeck::middle::region::{self, CodeExtent};
 use rustc_typeck::middle::region::CodeExtentData;
 use rustc_typeck::middle::resolve_lifetime;
 use rustc_typeck::middle::stability;
@@ -329,8 +329,10 @@ impl<'a, 'tcx> Env<'a, 'tcx> {
     }
 
     pub fn re_free(&self, nid: ast::NodeId, id: u32) -> ty::Region {
-        ty::ReFree(ty::FreeRegion { scope: DestructionScopeData::new(nid),
-                                    bound_region: ty::BrAnon(id)})
+        ty::ReFree(ty::FreeRegion {
+            scope: self.tcx().region_maps.item_extent(nid),
+            bound_region: ty::BrAnon(id)
+        })
     }
 
     pub fn t_rptr_free(&self, nid: ast::NodeId, id: u32) -> Ty<'tcx> {