@@ -131,7 +131,7 @@ impl BorrowedHandle<'_> {
131131 /// [here]: https://devblogs.microsoft.com/oldnewthing/20040302-00/?p=40443
132132 #[ inline]
133133 #[ unstable( feature = "io_safety" , issue = "87074" ) ]
134- pub unsafe fn borrow_raw_handle ( handle : RawHandle ) -> Self {
134+ pub unsafe fn borrow_raw ( handle : RawHandle ) -> Self {
135135 Self { handle, _phantom : PhantomData }
136136 }
137137}
@@ -329,7 +329,7 @@ impl AsHandle for OwnedHandle {
329329 // Safety: `OwnedHandle` and `BorrowedHandle` have the same validity
330330 // invariants, and the `BorrowdHandle` is bounded by the lifetime
331331 // of `&self`.
332- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
332+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
333333 }
334334}
335335
@@ -357,49 +357,49 @@ impl From<OwnedHandle> for fs::File {
357357impl AsHandle for crate :: io:: Stdin {
358358 #[ inline]
359359 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
360- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
360+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
361361 }
362362}
363363
364364impl < ' a > AsHandle for crate :: io:: StdinLock < ' a > {
365365 #[ inline]
366366 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
367- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
367+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
368368 }
369369}
370370
371371impl AsHandle for crate :: io:: Stdout {
372372 #[ inline]
373373 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
374- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
374+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
375375 }
376376}
377377
378378impl < ' a > AsHandle for crate :: io:: StdoutLock < ' a > {
379379 #[ inline]
380380 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
381- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
381+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
382382 }
383383}
384384
385385impl AsHandle for crate :: io:: Stderr {
386386 #[ inline]
387387 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
388- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
388+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
389389 }
390390}
391391
392392impl < ' a > AsHandle for crate :: io:: StderrLock < ' a > {
393393 #[ inline]
394394 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
395- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
395+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
396396 }
397397}
398398
399399impl AsHandle for crate :: process:: ChildStdin {
400400 #[ inline]
401401 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
402- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
402+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
403403 }
404404}
405405
@@ -413,7 +413,7 @@ impl From<crate::process::ChildStdin> for OwnedHandle {
413413impl AsHandle for crate :: process:: ChildStdout {
414414 #[ inline]
415415 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
416- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
416+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
417417 }
418418}
419419
@@ -427,7 +427,7 @@ impl From<crate::process::ChildStdout> for OwnedHandle {
427427impl AsHandle for crate :: process:: ChildStderr {
428428 #[ inline]
429429 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
430- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
430+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
431431 }
432432}
433433
@@ -441,7 +441,7 @@ impl From<crate::process::ChildStderr> for OwnedHandle {
441441impl < T > AsHandle for crate :: thread:: JoinHandle < T > {
442442 #[ inline]
443443 fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
444- unsafe { BorrowedHandle :: borrow_raw_handle ( self . as_raw_handle ( ) ) }
444+ unsafe { BorrowedHandle :: borrow_raw ( self . as_raw_handle ( ) ) }
445445 }
446446}
447447
0 commit comments