Enable file locking support in illumos by pietroalbini · Pull Request #148322 · rust-lang/rust (original) (raw)

#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 #146312.