Skip to content

Commit ba51912

Browse files
committed
---
yaml --- r: 5349 b: refs/heads/master c: 0d4b51d h: refs/heads/master i: 5347: c746241 v: v3
1 parent edac67c commit ba51912

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-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: 1b2c5c4c9b8235885e70a3dd94dc3e5bee7c7ffd
2+
refs/heads/master: 0d4b51d10d1f2e386ec4424a8319b8fabd96f97f

trunk/src/comp/middle/trans_common.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,10 @@ pure fn non_ty_var(cx: @crate_ctxt, t: ty::t) -> bool {
857857
}
858858
}
859859

860+
pure fn returns_non_ty_var(cx: @crate_ctxt, t: ty::t) -> bool {
861+
non_ty_var(cx, ty::ty_fn_ret(cx.tcx, t))
862+
}
863+
860864
//
861865
// Local Variables:
862866
// mode: rust

0 commit comments

Comments
 (0)