Skip to content

Commit 72b0a14

Browse files
committed
---
yaml --- r: 232756 b: refs/heads/try c: f3bd14a h: refs/heads/master v: v3
1 parent 8c52290 commit 72b0a14

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
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: 6e60fdba1794893dbd1855f01fb0f6b32b70137a
4+
refs/heads/try: f3bd14ab112ff77565dbb57a69540bbae2607ee9
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_trans/trans/expr.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,7 @@ pub fn trans<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
247247
immediate_rvalue(load_ty(bcx, global, const_ty), const_ty)
248248
} else {
249249
let llty = type_of::type_of(bcx.ccx(), const_ty);
250-
// HACK(eddyb) get around issues with lifetime intrinsics.
251-
let scratch = alloca_no_lifetime(bcx, llty, "const");
250+
let scratch = alloca(bcx, llty, "const");
252251
let lldest = if !const_ty.is_structural() {
253252
// Cast pointer to slot, because constants have different types.
254253
PointerCast(bcx, scratch, val_ty(global))
@@ -412,8 +411,7 @@ fn apply_adjustments<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
412411
let target = bcx.monomorphize(&target);
413412
let llty = type_of::type_of(bcx.ccx(), target);
414413

415-
// HACK(eddyb) get around issues with lifetime intrinsics.
416-
let scratch = alloca_no_lifetime(bcx, llty, "__coerce_target");
414+
let scratch = alloca(bcx, llty, "__coerce_target");
417415
let target_datum = Datum::new(scratch, target,
418416
Rvalue::new(ByRef));
419417
bcx = coerce_unsized(bcx, expr.span, source_datum, target_datum);

0 commit comments

Comments
 (0)