Skip to content

Commit 0558cac

Browse files
committed
---
yaml --- r: 233755 b: refs/heads/beta c: f3bd14a h: refs/heads/master i: 233753: b8121cb 233751: 4c3cdfb v: v3
1 parent 557b954 commit 0558cac

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
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 6e60fdba1794893dbd1855f01fb0f6b32b70137a
26+
refs/heads/beta: f3bd14ab112ff77565dbb57a69540bbae2607ee9
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 370fe2786109360f7c35b8ba552b83b773dd71d6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/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)