Skip to content

Commit

Permalink
fix other test
Browse files Browse the repository at this point in the history
  • Loading branch information
arielb1 committed Aug 24, 2015
1 parent 1e507d4 commit 06563fe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/librustc_driver/test.rs
Expand Up @@ -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;
Expand Down Expand Up @@ -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> {
Expand Down

0 comments on commit 06563fe

Please sign in to comment.