From 10ee1d6443922390dbd0e9f1c258ba6da67c1e49 Mon Sep 17 00:00:00 2001 From: "carpentry-heartbeat[bot]" Date: Sun, 16 Aug 2026 07:45:35 +0200 Subject: [PATCH] name the unused scope-exit test binding _sb so angler passes The lint step builds angler from master on every run, and angler's unused-let-binding rule flags the binding in the "owned buffers are deleted automatically at scope exit" assertion. That binding is deliberately unused -- it is the thing under test, bracketed by Debug.reset-memory-balance! / Debug.memory-balance -- so it cannot be deleted without leaving an assertion that measures nothing. A leading underscore is angler's own discard exemption (binding-name in angler.carp), the same spelling core's ignore expands to. The rename is codegen-neutral: diffing carp -b output across the two trees shows only the declaration and the StringBuf_delete call, differing in the variable's name alone. --- test/strbuf.carp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/strbuf.carp b/test/strbuf.carp index 36f2f75..efe2b83 100644 --- a/test/strbuf.carp +++ b/test/strbuf.carp @@ -161,6 +161,6 @@ 0l (do (Debug.reset-memory-balance!) - (let [sb (StringBuf.create)] ()) + (let [_sb (StringBuf.create)] ()) (Debug.memory-balance)) "owned buffers are deleted automatically at scope exit"))