From 266b1d10b9633ee227daa45c1e0f3c8de142aadc Mon Sep 17 00:00:00 2001 From: aiongg Date: Sat, 21 Nov 2026 00:30:45 +0000 Subject: [PATCH] replay::close doc: the layers that block a record --- crates/ui-contract/src/runtime/replay.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ui-contract/src/runtime/replay.rs b/crates/ui-contract/src/runtime/replay.rs index 910ff06a3..efa4b4df3 100644 --- a/crates/ui-contract/src/runtime/replay.rs +++ b/crates/ui-contract/src/runtime/replay.rs @@ -266,7 +266,8 @@ pub(crate) fn in_audit_run(ctx: &Context) -> bool { OPEN.load(Ordering::Acquire) > 0 && pass_state::with::(ctx, |recorder| recorder.open.iter().any(|open| open.audit)) } -/// Ends the innermost record, the one around a run on `layer`: paint or widgets on another layer block it. +/// Ends the innermost record, the one around a run on `layer`: paint or widgets on a layer that is neither `layer` nor +/// an overlay the run showed block it. pub(crate) fn close(ctx: &Context, layer: Layer) -> Record { OPEN.fetch_sub(1, Ordering::AcqRel); let (open, journal) = pass_state::with::(ctx, |recorder| {