Abort in Wasmtime builds without the gc cargo feature
Description
When the wasmtime crate is built without its gc Cargo feature a guest module that declares a non-final function type and performs a call_indirect, ref.test, ref.cast or br_on_cast against it makes compiled code call a runtime function that such builds don't implement, which aborts the host process.
Details
Without the gc Cargo feature, Wasmtime disables GC types and exceptions by default, but the GC proposal remains at its default, enabled. That proposal allows function subtyping ((type (sub ...))), and checking a function subtype at runtime calls a Wasmtime builtin which is only implemented with the gc cargo feature. Without it, the builtin is a stub that panics, and because it is called directly from compiled code the panic cannot unwind, so the process aborts.
Wasmtime now implements this builtin in all builds, with or without the gc cargo feature.
Impact
Only embeddings that build the wasmtime crate with default-features = false and without the gc feature are affected. In affected builds, a guest module can abort the host process with the default Config. Embedders can work around the issue by calling Config::wasm_gc(false).