Stream: git-wasmtime

Topic: wasmtime / PR #14023 fix convert of partial decl emitting...


view this post on Zulip Wasmtime GitHub notifications bot (Jul 30 2026 at 12:52):

Firestar99 opened PR #14023 from Firestar99:convert_partial to bytecodealliance:main:

When isle uses an implicit convert from A to B and the conversion declaration is partial,
it emits:

let v1: &Option<B> = &C::a_to_b(ctx, arg0);
let v2: &B = v1?;

This fails to compile since you can't ? a &Option<T>, only on an Option itself.
So add a .as_ref() to convert it to Option<&T> before ?.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 30 2026 at 12:52):

Firestar99 requested fitzgen for a review on PR #14023.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 30 2026 at 12:52):

Firestar99 requested wasmtime-compiler-reviewers for a review on PR #14023.


Last updated: Aug 30 2026 at 09:07 UTC