File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -396,6 +396,14 @@ impl<T: AsFd> AsFd for crate::sync::Arc<T> {
396
396
}
397
397
}
398
398
399
+ #[ stable( feature = "asfd_rc" , since = "CURRENT_RUSTC_VERSION" ) ]
400
+ impl < T : AsFd > AsFd for crate :: rc:: Rc < T > {
401
+ #[ inline]
402
+ fn as_fd ( & self ) -> BorrowedFd < ' _ > {
403
+ ( * * self ) . as_fd ( )
404
+ }
405
+ }
406
+
399
407
#[ stable( feature = "asfd_ptrs" , since = "1.64.0" ) ]
400
408
impl < T : AsFd > AsFd for Box < T > {
401
409
#[ inline]
Original file line number Diff line number Diff line change @@ -244,6 +244,14 @@ impl<T: AsRawFd> AsRawFd for crate::sync::Arc<T> {
244
244
}
245
245
}
246
246
247
+ #[ stable( feature = "asfd_rc" , since = "CURRENT_RUSTC_VERSION" ) ]
248
+ impl < T : AsRawFd > AsRawFd for crate :: rc:: Rc < T > {
249
+ #[ inline]
250
+ fn as_raw_fd ( & self ) -> RawFd {
251
+ ( * * self ) . as_raw_fd ( )
252
+ }
253
+ }
254
+
247
255
#[ stable( feature = "asrawfd_ptrs" , since = "1.63.0" ) ]
248
256
impl < T : AsRawFd > AsRawFd for Box < T > {
249
257
#[ inline]
You can’t perform that action at this time.
0 commit comments