@@ -135,7 +135,7 @@ impl BorrowedHandle<'_> {
135135 /// [here]: https://devblogs.microsoft.com/oldnewthing/20040302-00/?p=40443
136136 #[ inline]
137137 #[ unstable( feature = "io_safety" , issue = "87074" ) ]
138- pub unsafe fn borrow_raw_handle ( handle : RawHandle ) -> Self {
138+ pub unsafe fn borrow_raw ( handle : RawHandle ) -> Self {
139139 Self { handle, _phantom : PhantomData }
140140 }
141141}
@@ -333,7 +333,7 @@ impl AsHandle for OwnedHandle {
333333 // Safety: `OwnedHandle` and `BorrowedHandle` have the same validity
334334 // invariants, and the `BorrowdHandle` is bounded by the lifetime
335335 // of `&self`.
336- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
336+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
337337 }
338338}
339339
@@ -361,49 +361,49 @@ impl From<OwnedHandle> for fs::File {
361361impl AsHandle for crate :: io:: Stdin {
362362 #[ inline]
363363 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
364- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
364+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
365365 }
366366}
367367
368368impl < ' a > AsHandle for crate :: io:: StdinLock < ' a > {
369369 #[ inline]
370370 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
371- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
371+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
372372 }
373373}
374374
375375impl AsHandle for crate :: io:: Stdout {
376376 #[ inline]
377377 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
378- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
378+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
379379 }
380380}
381381
382382impl < ' a > AsHandle for crate :: io:: StdoutLock < ' a > {
383383 #[ inline]
384384 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
385- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
385+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
386386 }
387387}
388388
389389impl AsHandle for crate :: io:: Stderr {
390390 #[ inline]
391391 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
392- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
392+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
393393 }
394394}
395395
396396impl < ' a > AsHandle for crate :: io:: StderrLock < ' a > {
397397 #[ inline]
398398 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
399- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
399+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
400400 }
401401}
402402
403403impl AsHandle for crate :: process:: ChildStdin {
404404 #[ inline]
405405 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
406- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
406+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
407407 }
408408}
409409
@@ -417,7 +417,7 @@ impl From<crate::process::ChildStdin> for OwnedHandle {
417417impl AsHandle for crate :: process:: ChildStdout {
418418 #[ inline]
419419 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
420- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
420+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
421421 }
422422}
423423
@@ -431,7 +431,7 @@ impl From<crate::process::ChildStdout> for OwnedHandle {
431431impl AsHandle for crate :: process:: ChildStderr {
432432 #[ inline]
433433 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
434- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
434+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
435435 }
436436}
437437
@@ -445,7 +445,7 @@ impl From<crate::process::ChildStderr> for OwnedHandle {
445445impl < T > AsHandle for crate :: thread:: JoinHandle < T > {
446446 #[ inline]
447447 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
448- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
448+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
449449 }
450450}
451451
0 commit comments