Revert "rustc: Make bottom types immediates. Add a |log ret| testcase. Closes #935."

This reverts commit f19ab1ff3c.
This commit is contained in:
Marijn Haverbeke 2011-09-21 21:39:31 +02:00
parent 31c04a53e9
commit 80778f642f
2 changed files with 1 additions and 6 deletions

View file

@ -4306,7 +4306,7 @@ fn with_out_method(work: fn(out_method) -> result, cx: @block_ctxt,
// immediate-ness of the type.
fn type_is_immediate(ccx: @crate_ctxt, t: ty::t) -> bool {
ret ty::type_is_scalar(ccx.tcx, t) || ty::type_is_boxed(ccx.tcx, t) ||
ty::type_is_native(ccx.tcx, t) || ty::type_is_bot(ccx.tcx, t);
ty::type_is_native(ccx.tcx, t);
}
fn do_spill(cx: @block_ctxt, v: ValueRef, t: ty::t) -> result {

View file

@ -1,5 +0,0 @@
// xfail-test
fn f() { log ret; }
fn main() { f(); }