mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-02 07:07:59 +00:00
Enable file locking support in illumos https://github.com/rust-lang/rust/pull/132977 introduced an allow-list of targets supporting file locking, but forgot to add illumos to it (which introduced support for it in ~2015). `File::lock` and friends are now stable, and the ecosystem is slowly replacing custom libc calls with the standard library. Crucially, in 1.91 both Cargo and bootstrap switched to `File::lock`, both breaking build directory locking. This PR enables file locking on illumos. Fixes https://github.com/rust-lang/rust/issues/146312.