From 2cc1be3b088d43d95357c57103d8dd9776a707e7 Mon Sep 17 00:00:00 2001 From: robobun <117481402+robobun@users.noreply.github.com> Date: Mon, 27 Jul 2026 08:59:21 +0000 Subject: [PATCH] source-lints: add node_fs.rs to dead-code escape inventory #36067 renamed _cp_symlink/_cp_open_dest_with_mkdir and moved the dead-code suppression from the underscore prefix to explicit #[cfg_attr(..., allow(dead_code))] attributes. Both functions are live on Linux/FreeBSD and dead on Windows (and macOS for cp_symlink), so the escapes are legitimate, but the inventory was not regenerated and the ratchet test has been failing on main since bfd1e926f3. Regenerated with: bun ./test/internal/source-lints/dead-code-escapes.test.ts --- test/internal/source-lints/dead-code-escape-limits.json | 1 + 1 file changed, 1 insertion(+) diff --git a/test/internal/source-lints/dead-code-escape-limits.json b/test/internal/source-lints/dead-code-escape-limits.json index a14b0cb7065b..72df6948fce1 100644 --- a/test/internal/source-lints/dead-code-escape-limits.json +++ b/test/internal/source-lints/dead-code-escape-limits.json @@ -22,6 +22,7 @@ "src/runtime/image/backend_coregraphics.rs": 14, "src/runtime/image/codecs.rs": 1, "src/runtime/node/fs_events.rs": 3, + "src/runtime/node/node_fs.rs": 2, "src/runtime/server/NodeHTTPResponse.rs": 1, "src/spawn_sys/posix_spawn.rs": 4 }