Skip to content

Commit d4d5516

Browse files
committed
---
yaml --- r: 5514 b: refs/heads/master c: c587745 h: refs/heads/master v: v3
1 parent d9362e1 commit d4d5516

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 777a53631301b548be6c195361663178a926c4a3
2+
refs/heads/master: c5877450e605e842806140d3bdd93ca931fb60aa

trunk/src/comp/middle/trans_uniq.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import trans_common::*;
44
import trans_build::*;
55
import trans::{
66
trans_shared_malloc,
7-
type_of_or_i8,
7+
type_of_inner,
88
size_of,
99
move_val_if_temp,
1010
node_id_type,
@@ -54,7 +54,9 @@ fn alloc_uniq(cx: @block_ctxt, uniq_ty: ty::t)
5454
bcx = r.bcx;
5555
let llsz = r.val;
5656

57-
let llptrty = T_ptr(type_of_or_i8(bcx, contents_ty));
57+
let ccx = bcx_ccx(bcx);
58+
check non_ty_var(ccx, contents_ty);
59+
let llptrty = T_ptr(type_of_inner(ccx, bcx.sp, contents_ty));
5860

5961
r = trans_shared_malloc(bcx, llptrty, llsz);
6062
bcx = r.bcx;

trunk/src/test/run-pass/foreach-unique-drop.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// xfail-test
21

32
obj ob<K>(k: K) {
43
iter foo() -> ~{a: K} { put ~{a: k}; }

trunk/src/test/run-pass/generic-unique.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
// xfail-test
21

3-
fn box<T>(x: {x: T, y: T, z: T}) -> ~{x: T, y: T, z: T} { ret ~x; }
2+
fn box<@T>(x: {x: T, y: T, z: T}) -> ~{x: T, y: T, z: T} { ret ~x; }
43

54
fn main() {
65
let x: ~{x: int, y: int, z: int} = box::<int>({x: 1, y: 2, z: 3});

0 commit comments

Comments
 (0)