From 46581af155e2f2a668bbd1145902cc40c39e3e69 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Tue, 18 Sep 2018 18:46:17 +0200 Subject: [PATCH] Replace an unimplemented! with a bug! --- src/abi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/abi.rs b/src/abi.rs index b95c9e72ced..82f8257b632 100644 --- a/src/abi.rs +++ b/src/abi.rs @@ -676,7 +676,7 @@ fn codegen_intrinsic_call<'a, 'tcx: 'a>( fx.bcx.ins().imul_imm(len, elem_size as i64) } ty::Dynamic(..) => crate::vtable::size_of_obj(fx, args[0]), - ty => unimplemented!("size_of_val for {:?}", ty), + ty => bug!("size_of_val for unknown unsized type {:?}", ty), }; ret.write_cvalue(fx, CValue::ByVal(size, usize_layout)); }