Skip to content

Commit 06563fe

Browse files
committed
fix other test
1 parent 1e507d4 commit 06563fe

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/librustc_driver/test.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use rustc_lint;
1717
use rustc_resolve as resolve;
1818
use rustc_typeck::middle::lang_items;
1919
use rustc_typeck::middle::free_region::FreeRegionMap;
20-
use rustc_typeck::middle::region::{self, CodeExtent, DestructionScopeData};
20+
use rustc_typeck::middle::region::{self, CodeExtent};
2121
use rustc_typeck::middle::region::CodeExtentData;
2222
use rustc_typeck::middle::resolve_lifetime;
2323
use rustc_typeck::middle::stability;
@@ -329,8 +329,10 @@ impl<'a, 'tcx> Env<'a, 'tcx> {
329329
}
330330

331331
pub fn re_free(&self, nid: ast::NodeId, id: u32) -> ty::Region {
332-
ty::ReFree(ty::FreeRegion { scope: DestructionScopeData::new(nid),
333-
bound_region: ty::BrAnon(id)})
332+
ty::ReFree(ty::FreeRegion {
333+
scope: self.tcx().region_maps.item_extent(nid),
334+
bound_region: ty::BrAnon(id)
335+
})
334336
}
335337

336338
pub fn t_rptr_free(&self, nid: ast::NodeId, id: u32) -> Ty<'tcx> {

0 commit comments

Comments
 (0)