See https://github.com/bytecodealliance/wit-bindgen/pull/1529#pullrequestreview-3799794533 for original comment.