Skip to content

Commit a8c2b46

Browse files
committed
---
yaml --- r: 661 b: refs/heads/master c: 67aa39e h: refs/heads/master i: 659: 10ed396 v: v3
1 parent 856c583 commit a8c2b46

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
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: a493350eb5ab38ba8a6563f3eb4a090d257b0d3a
2+
refs/heads/master: 67aa39e1ef4358c309f4b07f1d587a0dad6dddf8

trunk/src/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \
488488
lazy-and-or.rs \
489489
lazy-init.rs \
490490
lazychan.rs \
491+
leak-box-as-tydesc.rs \
491492
lib-deque.rs \
492493
lib-int.rs \
493494
lib-io.rs \

trunk/src/boot/me/trans.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2562,8 +2562,8 @@ let trans_visitor
25622562

25632563
and get_tydesc (idopt:node_id option) (ty:Ast.ty) : Il.cell =
25642564
log cx "getting tydesc for %a" Ast.sprintf_ty ty;
2565-
let (ty, mut) = simplified_ty_innermost_was_mutable ty in
2566-
match ty with
2565+
let (ty', mut) = simplified_ty_innermost_was_mutable ty in
2566+
match ty' with
25672567
Ast.TY_param (idx, _) ->
25682568
(get_ty_param_in_current_frame idx)
25692569
| t when has_parametric_types t ->
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
fn leaky[T](T t) {
2+
}
3+
4+
fn main() {
5+
auto x = @10;
6+
leaky[@int](x);
7+
}

0 commit comments

Comments
 (0)