Conversation
scan_for_raises only flagged ON ... RAISE / EXIT actions, but the unselected-bubble path of every fallible WITH always emits rt.setError(...); return error.CheatError; for types like LockCycle / Deadlock. Functions in non-main scopes that hosted any WITH+ON clause therefore reached for an out-of-scope rt. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
WITH GUARD now supports multiple capabilities per WITH; each per-cap predicate references only its own alias (sibling-alias references are rejected with a "multi-object consistency for aliased objects is not supported" diagnostic, since synchronized sources cannot provide a cross-object atomic snapshot). Multiple per-cap GUARDs AND-combine in the lowering. MUTABLE aliases are accepted unless the body actually mutates them; mutation is recognized via the existing mark_var_mutated infrastructure, now also stamped on the SymbolEntry (aliases have no decl node) and on chained-target field/index assigns and mutating method receivers. Multi-fallible WITH (2+ EXCLUSIVE / write_locked_read) can now combine with an ON / RETRY clause. emit_sorted_lock_acquires_fallible uses the OrErr acquire variants, tracks held guards in per-cap booleans, releases held guards in reverse order on any acquisition failure, and either retries the sorted acquire from scratch or runs the user's ON action. Defers at WITH-scope are guarded by the same held-bitmap so they're safe no-ops on the failure path. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.