mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-10 22:58:18 +00:00
!temp Remove impl of WasmTypeList for Infallible.
I don't think it is necessary anymore.
This commit is contained in:
31
lib/api/src/externals/function.rs
vendored
31
lib/api/src/externals/function.rs
vendored
@@ -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 {
|
macro_rules! impl_traits {
|
||||||
( [$repr:ident] $struct_name:ident, $( $x:ident ),* ) => {
|
( [$repr:ident] $struct_name:ident, $( $x:ident ),* ) => {
|
||||||
/// Struct for typed funcs.
|
/// 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!([transparent] S1, A1);
|
||||||
impl_traits!([C] S2, A1, A2);
|
impl_traits!([C] S2, A1, A2);
|
||||||
impl_traits!([C] S3, A1, A2, A3);
|
impl_traits!([C] S3, A1, A2, A3);
|
||||||
|
|||||||
Reference in New Issue
Block a user