Skip to content

[Rust] Fixes bug with async return! behavior#4393

Draft
mizzle-mo wants to merge 1 commit intofable-compiler:mainfrom
mizzle-mo:fix/rust-return
Draft

[Rust] Fixes bug with async return! behavior#4393
mizzle-mo wants to merge 1 commit intofable-compiler:mainfrom
mizzle-mo:fix/rust-return

Conversation

@mizzle-mo
Copy link
Member

Hey Team,

I used to hang out in the Gitter back in the day! I am just getting back into the .NET/F# ecosystem after many years away. F# is still by far my favorite language and community, and I figured I would get back up to speed by experimenting with the Rust support.

What this PR does:

  • Fixes bug with using return! in an async CE
  • Adds return_from runtime function that passes the existing computation through unchanged, avoiding double-wrapping
  • Adds regression tests

Context & Feedback Request:

My F# is pretty rusty, so I am leaning on Claude and friends as a tutor to help me get reacquainted with the syntax and idioms. I’ve tested the logic locally and it works, but I want to be completely transparent: I am still re-learning what makes for "good" F#.

I opened this as a Draft because the last thing I want is to burden you with ugly code. If you have the bandwidth, I would hugely appreciate any feedback. If you prefer I work on my F# skills locally before contributing, just say the word and I will happily close this—no hard feelings at all! I just figured collaborating openly is the fastest way to learn while hopefully providing value.

Thanks for your time and for keeping this awesome project going!

@mizzle-mo mizzle-mo force-pushed the fix/rust-return branch 2 times, most recently from b8ce645 to c5e15dc Compare March 11, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant