Fix wiggle tests

This commit is contained in:
Alex Crichton
2021-02-17 13:42:41 -08:00
committed by Andrew Brown
parent df9c725fa0
commit fa98f0bc91
31 changed files with 236 additions and 239 deletions

View File

@@ -8,7 +8,7 @@ mod enum_test {
wiggle::from_witx!({
witx_literal:
"(typename $self
(enum u8
(enum (@witx tag u8)
$self
$2big
)
@@ -35,7 +35,7 @@ mod module_trait_fn_and_arg_test {
});
impl<'a> self_::Self_ for WasiCtx<'a> {
#[allow(unused_variables)]
fn fn_(&self, use_: u32, virtual_: u32) -> Result<(), ()> {
fn fn_(&self, use_: u32, virtual_: u32) {
unimplemented!();
}
}
@@ -46,7 +46,7 @@ mod struct_test {
wiggle::from_witx!({
witx_literal:
"(typename $self
(struct
(record
(field $become s32)
(field $mut s32)
)