Skip to content

Commit 1b7f8ed

Browse files
committed
---
yaml --- r: 1986 b: refs/heads/master c: 99901bd h: refs/heads/master v: v3
1 parent c1e9525 commit 1b7f8ed

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
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: 21fb49ad95601f2ae06e2218cca84e5b2fc45a51
2+
refs/heads/master: 99901bdbc435fdf6768b392c171204dd7281162b

trunk/src/comp/middle/trans.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3086,6 +3086,7 @@ fn trans_if(@block_ctxt cx, @ast.expr cond,
30863086

30873087
// If we have an else expression, then the entire
30883088
// if expression can have a non-nil type.
3089+
// FIXME: This isn't quite right, particularly re: dynamic types
30893090
auto expr_ty = ty.expr_ty(elexpr);
30903091
if (ty.type_has_dynamic_size(expr_ty)) {
30913092
expr_llty = T_typaram_ptr(cx.fcx.ccx.tn);
@@ -3576,6 +3577,7 @@ fn trans_alt(@block_ctxt cx, @ast.expr expr,
35763577
auto default_res = trans_fail(default_cx, expr.span,
35773578
"non-exhaustive match failure");
35783579

3580+
// FIXME: This isn't quite right, particularly re: dynamic types
35793581
auto expr_ty = ty.ann_to_type(ann);
35803582
auto expr_llty;
35813583
if (ty.type_has_dynamic_size(expr_ty)) {

0 commit comments

Comments
 (0)