rustc: Make bottom types immediates. Add a |log ret| testcase. Closes #935.
This commit is contained in:
parent
fcd17731cf
commit
f19ab1ff3c
@ -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_native(ccx.tcx, t) || ty::type_is_bot(ccx.tcx, t);
|
||||
}
|
||||
|
||||
fn do_spill(cx: @block_ctxt, v: ValueRef, t: ty::t) -> result {
|
||||
|
5
src/test/run-pass/log-ret.rs
Normal file
5
src/test/run-pass/log-ret.rs
Normal file
@ -0,0 +1,5 @@
|
||||
// xfail-test
|
||||
|
||||
fn f() { log ret; }
|
||||
fn main() { f(); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user