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 @@ -220,6 +220,7 @@ impl TryFrom<HandleOrInvalid> for OwnedHandle {
220
220
221
221
/// This is the error type used by [`HandleOrNull`] when attempting to convert
222
222
/// into a handle, to indicate that the value is null.
223
+ // The empty field prevents constructing this, and allows extending it in the future.
223
224
#[ unstable( feature = "io_safety" , issue = "87074" ) ]
224
225
#[ derive( Debug , Clone , PartialEq , Eq ) ]
225
226
pub struct NullHandleError ( ( ) ) ;
@@ -237,6 +238,7 @@ impl crate::error::Error for NullHandleError {}
237
238
/// This is the error type used by [`HandleOrInvalid`] when attempting to
238
239
/// convert into a handle, to indicate that the value is
239
240
/// `INVALID_HANDLE_VALUE`.
241
+ // The empty field prevents constructing this, and allows extending it in the future.
240
242
#[ unstable( feature = "io_safety" , issue = "87074" ) ]
241
243
#[ derive( Debug , Clone , PartialEq , Eq ) ]
242
244
pub struct InvalidHandleError ( ( ) ) ;
You can’t perform that action at this time.
0 commit comments