This commit refactors the `wasmtime-wast` crate to internally make it a bit more concise with less repetition. Additionally it also improves the error messages by guaranteeing that all failed tests have context indicating where the test was defined. It turns out there was also a bug in the previous implementation where an `AssertMalformed` directive with a `quote` module would accidentally skip all further tests. This has now been fixed, and all futher tests continued to pass except for the `simd_const.wast` test. This test has been disabled temporarily but once the `wasmparser` and `wast` crates are updated (being worked on independently) this should be possible to re-enable.
This is the wasmtime-wast crate, which contains an implementation of WebAssembly's
"wast" test scripting language, which is used in the
WebAssembly spec testsuite, using wasmtime for execution.