diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-05-15 18:41:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-15 18:41:25 +0200 |
| commit | f8832c23da821cae3ea5da71c75f339db2bce5c5 (patch) | |
| tree | 6426ed6c77a5880d6a9bd3fd69b2325873ecc4e7 /compiler/rustc_mir_transform/src/coverage/debug.rs | |
| parent | a170f2b3d2aa95e51040163e801123b17d38c24f (diff) | |
| parent | 5c60951344d180f5a21ba550dae77847dcd92de0 (diff) | |
| download | rust-f8832c23da821cae3ea5da71c75f339db2bce5c5.tar.gz rust-f8832c23da821cae3ea5da71c75f339db2bce5c5.zip | |
Rollup merge of #96947 - sunfishcode:sunfishcode/rustc-nonnull-optimization-guaranteed, r=joshtriplett
Add rustc_nonnull_optimization_guaranteed to Owned/Borrowed Fd/Socket PR #94586 added support for using `rustc_nonnull_optimization_guaranteed` on values where the "null" value is the all-ones bitpattern. Now that #94586 has made it to the stage0 compiler, add `rustc_nonnull_optimization_guaranteed` to `OwnedFd`, `BorrowedFd`, `OwnedSocket`, and `BorrowedSocket`, since these types all exclude all-ones bitpatterns. This allows `Option<OwnedFd>`, `Option<BorrowedFd>`, `Option<OwnedSocket>`, and `Option<BorrowedSocket>` to be used in FFI declarations, as described in the [I/O safety RFC]. [I/O safety RFC]: https://github.com/rust-lang/rfcs/blob/master/text/3128-io-safety.md#ownedfd-and-borrowedfdfd-1
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
