You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rust: drop(fs::..) discards errors that unused_result_ok cannot see #13352
drop(std::fs::..) / drop(fs::..) discards a file-system error where clippy::unused_result_ok, clippy::map_err_ignore and the discards() check in tools/ci/lint_attributes_test.rs:161 cannot see it: 224 sites, 152 outside test files.
Largest groups outside tests: deploy/private (40), cli/setup (19), cli/plan (15), apple/private (13), tools/testing (12), cli/adopt (8), cli/cli (7), cli/process (6), cli/audit (4); e.g. cli/atomic_fs/src/lib.rsremove_stale_staging, android/private/packaging/ops/src/sign.rs:254, appimage/private/tools/packer/src/lib.rs:236.
Shipped code: remove scratch files through a helper that ignores NotFound and logs any other error with the path (tracing::info!), or propagate the error where the removal matters. Test helpers may keep a best-effort removal but say why in a one-line comment.
Then extend discards() in tools/ci/lint_attributes_test.rs to reject drop(fs:: and drop(std::fs:: in shipped Rust, with a flag/pass unit test like flags_dropped_writes_and_ok_discards.
deploy/private group done in #13379 (helpers dx_atomic_fs::discard_file/discard_dir). Remaining:
Convert the other crate groups: cli/setup, cli/plan, apple/private, tools/testing, cli/adopt, cli/cli, cli/process, cli/audit, android/private/packaging/ops, appimage/private/tools/packer, and the rest (use the dx_atomic_fs helpers).
Then extend discards() in tools/ci/lint_attributes_test.rs to reject drop(fs:: / drop(std::fs:: with a flag/pass unit test.
Activity
deploy: discard scratch paths through dx_atomic_fs helpers (part of #…
TrapsterDK commentedon Nov 18, 2026
deploy/private group done in #13379 (helpers
dx_atomic_fs::discard_file/discard_dir). Remaining:discards()in tools/ci/lint_attributes_test.rs to rejectdrop(fs::/drop(std::fs::with a flag/pass unit test.deploy: discard scratch paths through dx_atomic_fs helpers (part of #…
deploy: discard scratch paths through dx_atomic_fs helpers (part of #…
deploy: discard scratch paths through dx_atomic_fs helpers (part of #…
deploy: discard scratch paths through dx_atomic_fs helpers (part of #…
rust: cli/plan, cli/adopt, cli/process and cli/audit stop dropping fs…
TrapsterDK commentedon Nov 18, 2026
#13403 covers cli/setup, cli/plan, cli/adopt, cli/process and cli/audit, and adds
dx_atomic_fs::write_hintfor best-effort hint writes. Still to do:discards()intools/ci/lint_attributes_test.rs.Generated by Claude Code
rust: make_writable still walks a directory it cannot chmod (part of #…
rust: cli/env, cli/cli and tools/testing stop dropping fs errors (par…
TrapsterDK commentedon Nov 18, 2026
#13409 covers cli/env, cli/cli and tools/testing. Still to do:
write_hintonce rust: cli/setup, plan, adopt, process and audit stop dropping fs errors (part of #13352) #13403 merges:process_probe/probe_test.rs:428andhermetic/src/lib.rs:1696.discards()intools/ci/lint_attributes_test.rs.Generated by Claude Code
rust: cli/setup, plan, adopt, process and audit stop dropping fs erro…
rust: cli/env, cli/cli and tools/testing stop dropping fs errors (par…
rust: cli/env, cli/cli and tools/testing stop dropping fs errors (par…
rust: remaining crates stop dropping fs errors; lint rejects drop(fs:…