Conversation
|
r? @ChrisDenton rustbot has assigned @ChrisDenton. Use |
| /// whenever possible. However, there are situations where touching the `std::io` handles (or most | ||
| /// other parts of the standard library) risks deadlocks or other subtle bugs. For example: | ||
| /// | ||
| /// - Global allocators must be careful to [avoid reentrancy][global-alloc-reentrancy], and the |
There was a problem hiding this comment.
Could this be moved to a new section in the BorrowedFd docs rather than being on STDERR?
There was a problem hiding this comment.
Which parts and why? I could see some of it being relevant or at least instructive for general BorrowedFd docs (e.g., discussion of BorrowedFd<'static> implications, or the std::io handle vs. underlying FD differences, since that also matters for using AsFd on the handles). But e.g. for the bullet point your comment is attached to, I don't see how it would relate to BorrowedFd docs at all.
Tracking issue: #150836