diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-04-25 23:15:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-25 23:15:17 +0200 |
| commit | 25508ebe680dc5ff9a2aa0e6f4c47e9757edd1c9 (patch) | |
| tree | 1734802f61b460cc2e0e341574dd37cfd71738e7 /compiler/rustc_mir/src/transform/coverage/debug.rs | |
| parent | 139749934b174cbe556d4e026a76461e9aa8d0b3 (diff) | |
| parent | fbc2aadbfc6a54da9d8cc5929287d2bcc55c545e (diff) | |
| download | rust-25508ebe680dc5ff9a2aa0e6f4c47e9757edd1c9.tar.gz rust-25508ebe680dc5ff9a2aa0e6f4c47e9757edd1c9.zip | |
Rollup merge of #84541 - KaiJewson:inline-raw, r=m-ou-se
Inline most raw socket, fd and handle conversions Now that file descriptor types on Unix have niches, it is advantageous for user libraries which provide file descriptor wrappers (e.g. `Socket` from socket2) to store a `File` internally instead of a `RawFd`, so that the niche can be taken advantage of. However, doing so will currently result in worse performance as `IntoRawFd`, `FromRawFd` and `AsRawFd` are not inlined. This change adds `#[inline]` to those methods on std types that wrap file descriptors, handles or sockets.
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
