1
Fork 0

Add a returns_non_ty_var predicate

which just calls non_ty_var on the return type of t, assuming t is
a function type.
This commit is contained in:
Tim Chevalier 2011-09-16 13:03:26 -07:00
parent 1b2c5c4c9b
commit 0d4b51d10d

View file

@ -857,6 +857,10 @@ pure fn non_ty_var(cx: @crate_ctxt, t: ty::t) -> bool {
}
}
pure fn returns_non_ty_var(cx: @crate_ctxt, t: ty::t) -> bool {
non_ty_var(cx, ty::ty_fn_ret(cx.tcx, t))
}
//
// Local Variables:
// mode: rust