File tree 1 file changed +2
-0
lines changed
library/std/src/os/windows/io
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,7 @@ impl TryFrom<HandleOrInvalid> for OwnedHandle {
219
219
220
220
/// This is the error type used by [`HandleOrNull`] when attempting to convert
221
221
/// into a handle, to indicate that the value is null.
222
+ // The empty field prevents constructing this, and allows extending it in the future.
222
223
#[ unstable( feature = "io_safety" , issue = "87074" ) ]
223
224
#[ derive( Debug , Clone , PartialEq , Eq ) ]
224
225
pub struct NullHandleError ( ( ) ) ;
@@ -236,6 +237,7 @@ impl crate::error::Error for NullHandleError {}
236
237
/// This is the error type used by [`HandleOrInvalid`] when attempting to
237
238
/// convert into a handle, to indicate that the value is
238
239
/// `INVALID_HANDLE_VALUE`.
240
+ // The empty field prevents constructing this, and allows extending it in the future.
239
241
#[ unstable( feature = "io_safety" , issue = "87074" ) ]
240
242
#[ derive( Debug , Clone , PartialEq , Eq ) ]
241
243
pub struct InvalidHandleError ( ( ) ) ;
You can’t perform that action at this time.
0 commit comments