summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-05-05 16:11:51 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-05-05 16:11:51 +0800
commitb180b4452b3e6a337b28dacd8a649373f9c738d8 (patch)
treecfa5085f671cbbdcdaea61bf1b12bdef5858c0f7
parent0e5144716759fb7a20fd277d35a1e6fb92b59a5a (diff)
downloadmrust-b180b4452b3e6a337b28dacd8a649373f9c738d8.tar.gz
MIR Gen - HACK: Don't check for Unsize impl
-rw-r--r--Makefile1
-rw-r--r--src/mir/from_hir.cpp5
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index dcba1cd3..3bd1b730 100644
--- a/Makefile
+++ b/Makefile
@@ -789,6 +789,7 @@ rust_tests-run-fail: $(call DEF_RUST_TESTS,run-fail)
LIB_TESTS := collections collectionstest rustc_data_structures
RUNTIME_ARGS_output/libcollectionstest-test := --test-threads 1 --skip linked_list::test_ord_nan --skip ::slice::test_box_slice_clone_panics
+RUNTIME_ARGS_output/libstd-test := --test-threads 1
rust_tests-libs: $(patsubst %,output/lib%-test_out.txt, $(LIB_TESTS))
#rust_tests-compile-fail: $(call DEF_RUST_TESTS,compile-fail)
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp
index 04291799..5d94e5c3 100644
--- a/src/mir/from_hir.cpp
+++ b/src/mir/from_hir.cpp
@@ -1312,8 +1312,9 @@ namespace {
}
else
{
- // Probably an error.
- TODO(node.span(), "MIR _Unsize to " << ty_out);
+ // Probably an error?
+ m_builder.set_result( node.span(), ::MIR::RValue::make_Cast({ mv$(ptr_lval), node.m_res_type.clone() }) );
+ //TODO(node.span(), "MIR _Unsize to " << ty_out);
}
),
(Slice,