Skip to content

Commit 29a77b9

Browse files
dotdashBjörn Steinbrink
authored andcommitted
---
yaml --- r: 142508 b: refs/heads/try2 c: 4a485f8 h: refs/heads/master v: v3
1 parent b077f50 commit 29a77b9

File tree

4 files changed

+7
-15
lines changed

4 files changed

+7
-15
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 65ed80339b52bae26457f5c19dc9861bd7de643e
8+
refs/heads/try2: 4a485f8cec524c8f3f57e4fd3248d5093ed3dc5f
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/mk/tests.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# The names of crates that must be tested
1717
TEST_TARGET_CRATES = std extra
18-
TEST_HOST_CRATES = syntax rustc rustdoc rust rustpkg rusti
18+
TEST_HOST_CRATES = syntax rustc rustdoc rust rustpkg
1919
TEST_CRATES = $(TEST_TARGET_CRATES) $(TEST_HOST_CRATES)
2020

2121
# Markdown files under doc/ that should have their code extracted and run
@@ -157,7 +157,6 @@ check-test: cleantestlibs cleantmptestlogs all check-stage2-rfail
157157

158158
check-lite: cleantestlibs cleantmptestlogs \
159159
check-stage2-std check-stage2-extra check-stage2-rpass \
160-
check-stage2-rustpkg check-stage2-rusti \
161160
check-stage2-rfail check-stage2-cfail
162161
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
163162

branches/try2/src/librustc/middle/trans/callee.rs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -672,15 +672,8 @@ pub fn trans_call_inner(in_cx: block,
672672
expr::Ignore => {
673673
// drop the value if it is not being saved.
674674
unsafe {
675-
if llvm::LLVMIsUndef(llretslot) != lib::llvm::True {
676-
if ty::type_is_nil(ret_ty) {
677-
// When implementing the for-loop sugar syntax, the
678-
// type of the for-loop is nil, but the function
679-
// it's invoking returns a bool. This is a special
680-
// case to ignore instead of invoking the Store
681-
// below into a scratch pointer of a mismatched
682-
// type.
683-
} else if ty::type_is_immediate(bcx.tcx(), ret_ty) {
675+
if ty::type_needs_drop(bcx.tcx(), ret_ty) {
676+
if ty::type_is_immediate(bcx.tcx(), ret_ty) {
684677
let llscratchptr = alloc_ty(bcx, ret_ty);
685678
Store(bcx, llresult, llscratchptr);
686679
bcx = glue::drop_ty(bcx, llscratchptr, ret_ty);
@@ -734,7 +727,7 @@ pub fn trans_ret_slot(bcx: block, fn_ty: ty::t, dest: expr::Dest)
734727
match dest {
735728
expr::SaveIn(dst) => dst,
736729
expr::Ignore => {
737-
if ty::type_is_nil(retty) {
730+
if ty::type_is_immediate(bcx.tcx(), retty) {
738731
unsafe {
739732
llvm::LLVMGetUndef(Type::nil().ptr_to().to_ref())
740733
}

branches/try2/src/librusti/rusti.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,8 +530,7 @@ mod tests {
530530

531531
// FIXME: #7220 rusti on 32bit mac doesn't work.
532532
// FIXME: #7641 rusti on 32bit linux cross compile doesn't work
533-
// FIXME: #7115 re-enable once LLVM has been upgraded
534-
#[cfg(thiswillneverbeacfgflag)]
533+
#[cfg(not(target_word_size="32"))]
535534
fn run_program(prog: &str) {
536535
let mut r = repl();
537536
for prog.split_iter('\n').advance |cmd| {
@@ -540,6 +539,7 @@ mod tests {
540539
r = result.expect(fmt!("the command '%s' failed", cmd));
541540
}
542541
}
542+
#[cfg(target_word_size="32")]
543543
fn run_program(_: &str) {}
544544

545545
#[test]

0 commit comments

Comments
 (0)