Skip to content

Commit 32be370

Browse files
committed
---
yaml --- r: 232680 b: refs/heads/try c: 06563fe h: refs/heads/master v: v3
1 parent 6926085 commit 32be370

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: edeb4f1c86cbf6af8ef9874d4b3af50f721ea1b8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 1e507d44505a336fb60ee1dbd121bd986788296e
4+
refs/heads/try: 06563fe0b7d64b7552d65a7ab00aa360820f05c5
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librustc_driver/test.rs

Lines changed: 5 additions & 3 deletions
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)