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:
parent
1b2c5c4c9b
commit
0d4b51d10d
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue