@@ -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}
@@ -349,7 +349,7 @@ impl AsHandle for OwnedHandle {
349349 // Safety: `OwnedHandle` and `BorrowedHandle` have the same validity
350350 // invariants, and the `BorrowdHandle` is bounded by the lifetime
351351 // of `&self`.
352- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
352+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
353353 }
354354}
355355
@@ -377,49 +377,49 @@ impl From<OwnedHandle> for fs::File {
377377impl AsHandle for crate :: io:: Stdin {
378378 #[ inline]
379379 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
380- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
380+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
381381 }
382382}
383383
384384impl < ' a > AsHandle for crate :: io:: StdinLock < ' a > {
385385 #[ inline]
386386 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
387- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
387+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
388388 }
389389}
390390
391391impl AsHandle for crate :: io:: Stdout {
392392 #[ inline]
393393 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
394- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
394+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
395395 }
396396}
397397
398398impl < ' a > AsHandle for crate :: io:: StdoutLock < ' a > {
399399 #[ inline]
400400 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
401- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
401+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
402402 }
403403}
404404
405405impl AsHandle for crate :: io:: Stderr {
406406 #[ inline]
407407 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
408- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
408+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
409409 }
410410}
411411
412412impl < ' a > AsHandle for crate :: io:: StderrLock < ' a > {
413413 #[ inline]
414414 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
415- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
415+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
416416 }
417417}
418418
419419impl AsHandle for crate :: process:: ChildStdin {
420420 #[ inline]
421421 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
422- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
422+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
423423 }
424424}
425425
@@ -433,7 +433,7 @@ impl From<crate::process::ChildStdin> for OwnedHandle {
433433impl AsHandle for crate :: process:: ChildStdout {
434434 #[ inline]
435435 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
436- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
436+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
437437 }
438438}
439439
@@ -447,7 +447,7 @@ impl From<crate::process::ChildStdout> for OwnedHandle {
447447impl AsHandle for crate :: process:: ChildStderr {
448448 #[ inline]
449449 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
450- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
450+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
451451 }
452452}
453453
@@ -461,7 +461,7 @@ impl From<crate::process::ChildStderr> for OwnedHandle {
461461impl < T > AsHandle for crate :: thread:: JoinHandle < T > {
462462 #[ inline]
463463 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
464- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
464+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
465465 }
466466}
467467
0 commit comments