diff options
| author | bors <bors@rust-lang.org> | 2020-09-11 21:54:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-09-11 21:54:31 +0000 |
| commit | 99111606fcda4fdb0646e4f7ee0f6cbcb76fb84a (patch) | |
| tree | 51009f5f6a8807768441b04360e1e7891e617aa0 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | bc57bd8c7e3e28f8bed4fced3973bfe04949918f (diff) | |
| parent | 64b8fd7920e177023364c7d9dada0d3f8fad3911 (diff) | |
| download | rust-99111606fcda4fdb0646e4f7ee0f6cbcb76fb84a.tar.gz rust-99111606fcda4fdb0646e4f7ee0f6cbcb76fb84a.zip | |
Auto merge of #73761 - rijenkii:master, r=KodrAus
Add `peek` and `peek_from` to `UnixStream` and `UnixDatagram` This is my first PR, so I'm sure I've done some things wrong. This PR: * adds `peek` function to `UnixStream`; * adds `peek` and `peek_from` to `UnixDatagram`; * moves `UnixDatagram::recv_from` implementation to a private function `recv_from_flags`, as `peek_from` uses the same code, just with different flags. I've taken the documentation from `TcpStream` and `UdpStream`, so it may or may not make sense (I'm bad with english words). Also, I'm not sure what I should write in the `unstable` attribute, so I've made up the name and set the issue to "none". Closes #68565.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
