From ad7c618193c33155ae6f6fa43bb34f8feb740bb0 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 22 Jun 2020 10:48:15 +0200 Subject: [PATCH] !temp Remove impl of `WasmTypeList` for `Infallible`. I don't think it is necessary anymore. --- lib/api/src/externals/function.rs | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/lib/api/src/externals/function.rs b/lib/api/src/externals/function.rs index bd3bf7dbe..cd371cbfd 100644 --- a/lib/api/src/externals/function.rs +++ b/lib/api/src/externals/function.rs @@ -597,35 +597,6 @@ mod inner { } } - impl WasmTypeList for Infallible { - type CStruct = Self; - type Array = [i128; 0]; - - fn from_array(_: Self::Array) -> Self { - unreachable!() - } - - fn into_array(self) -> Self::Array { - [] - } - - fn empty_array() -> Self::Array { - unreachable!() - } - - fn from_c_struct(_: Self::CStruct) -> Self { - unreachable!() - } - - fn into_c_struct(self) -> Self::CStruct { - unreachable!() - } - - fn wasm_types() -> &'static [Type] { - &[] - } - } - macro_rules! impl_traits { ( [$repr:ident] $struct_name:ident, $( $x:ident ),* ) => { /// Struct for typed funcs. @@ -759,7 +730,7 @@ mod inner { }}; } - //impl_traits!([C] S0,); + impl_traits!([C] S0,); //impl_traits!([transparent] S1, A1); impl_traits!([C] S2, A1, A2); impl_traits!([C] S3, A1, A2, A3);