fix: Lock state and settings file updates
Constraint: rustup state and settings files can be touched by concurrent rustup processes. Rejected: truncating on open | The exclusive lock must be held first. Confidence: high Scope-risk: narrow Directive: Keep locked-file read/write changes focused on state/settings persistence semantics. Tested: cargo test --features test locked_file_round_trip_truncates_previous_contents; cargo test --features test settings::tests; cargo test --features test --test test_bonanza notify_release_hint; cargo check --all-targets --features test; cargo clippy --all-targets --features test -- -D warnings; cargo fmt --all -- --check; git diff --check Not-tested: full test_bonanza suite
Y
ychampion committed
cc40f2be73e27c88e8aeed74e4918454bc754b41
Parent: 121a7f2
Committed by Gen Li <rami3l@outlook.com>
on 7/10/2026, 1:20:27 PM