rust-lang / jobserver-rs

Apache License 2.0
69 stars 39 forks source link

Improve diagnostics on closed or corrupted file descriptors #51

Open petrochenkov opened 1 year ago

petrochenkov commented 1 year ago

This issue is a continuation of https://github.com/alexcrichton/jobserver-rs/issues/27#issuecomment-701020994.

Jobserver users may want to report warnings or errors if the jobserver cannot be correctly inherited from the environment.

For example, rustc previously ICEd on jobserver errors (https://github.com/rust-lang/rust/issues/46981), but now it either swallows them (when jobserver acquire or release fails) or silently creates a new jobserver. However, for diagnosing issues in the build environment we'd ideally want to

Cargo probably wants something like this as well.

This crate can support producing extended error types from Client::from_env to support such diagnostics.

petrochenkov commented 1 year ago

@BelovDV is currently working on this.