@@ -247,8 +247,7 @@ pub fn trans<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
247
247
immediate_rvalue ( load_ty ( bcx, global, const_ty) , const_ty)
248
248
} else {
249
249
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" ) ;
252
251
let lldest = if !const_ty. is_structural ( ) {
253
252
// Cast pointer to slot, because constants have different types.
254
253
PointerCast ( bcx, scratch, val_ty ( global) )
@@ -412,8 +411,7 @@ fn apply_adjustments<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
412
411
let target = bcx. monomorphize ( & target) ;
413
412
let llty = type_of:: type_of ( bcx. ccx ( ) , target) ;
414
413
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" ) ;
417
415
let target_datum = Datum :: new ( scratch, target,
418
416
Rvalue :: new ( ByRef ) ) ;
419
417
bcx = coerce_unsized ( bcx, expr. span , source_datum, target_datum) ;
0 commit comments