From ef8312806dc4b78728a7dd1c7cce43ee59b18efa Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Mon, 7 Sep 2026 16:11:32 +0000 Subject: [PATCH] Serve the probe record the forwarding test finishes --- node-graph/nodes/gcore/src/record.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/node-graph/nodes/gcore/src/record.rs b/node-graph/nodes/gcore/src/record.rs index 7e0a20e702..bac9450254 100644 --- a/node-graph/nodes/gcore/src/record.rs +++ b/node-graph/nodes/gcore/src/record.rs @@ -2859,8 +2859,14 @@ mod tests { let frames = frames_for(&[&layout]); let base = { let probe = frames.scope(); - // SAFETY: nothing reads the probe's record; only its address is taken. - let value = unsafe { probe.claim(&layout).finish() }; + let mut claim = probe.claim(&layout); + claim.element(0f64, &arena).expect("the arena holds the element"); + for name in ["opacity", "length"] { + // SAFETY: the offset is this claim's own layout's, at the f64 the field was declared with. + unsafe { claim.attr_at(layout.offset_of(name, 0).expect("the fixture declares the field"), 0f64) }; + } + // SAFETY: the element and both fields complete the record. + let value = unsafe { claim.finish() }; layout.rec(&value).ptr() };