File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -1701,6 +1701,30 @@ impl AsRef<OsStr> for String {
17011701 }
17021702}
17031703
1704+ #[ stable( feature = "smart_ptr_as_ref_str" , since = "CURRENT_RUSTC_VERSION" ) ]
1705+ impl AsRef < OsStr > for Box < str > {
1706+ #[ inline]
1707+ fn as_ref ( & self ) -> & OsStr {
1708+ ( & * * self ) . as_ref ( )
1709+ }
1710+ }
1711+
1712+ #[ stable( feature = "smart_ptr_as_ref_str" , since = "CURRENT_RUSTC_VERSION" ) ]
1713+ impl AsRef < OsStr > for Rc < str > {
1714+ #[ inline]
1715+ fn as_ref ( & self ) -> & OsStr {
1716+ ( & * * self ) . as_ref ( )
1717+ }
1718+ }
1719+
1720+ #[ stable( feature = "smart_ptr_as_ref_str" , since = "CURRENT_RUSTC_VERSION" ) ]
1721+ impl AsRef < OsStr > for Arc < str > {
1722+ #[ inline]
1723+ fn as_ref ( & self ) -> & OsStr {
1724+ ( & * * self ) . as_ref ( )
1725+ }
1726+ }
1727+
17041728impl FromInner < Buf > for OsString {
17051729 #[ inline]
17061730 fn from_inner ( buf : Buf ) -> OsString {
You can’t perform that action at this time.
0 commit comments