This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ impl str {
234234 #[ stable( feature = "str_box_extras" , since = "1.20.0" ) ]
235235 #[ must_use = "`self` will be dropped if the result is not used" ]
236236 #[ inline]
237- pub fn into_boxed_bytes ( self : Box < str > ) -> Box < [ u8 ] > {
237+ pub fn into_boxed_bytes ( self : Box < Self > ) -> Box < [ u8 ] > {
238238 self . into ( )
239239 }
240240
@@ -501,7 +501,7 @@ impl str {
501501 #[ rustc_allow_incoherent_impl]
502502 #[ must_use = "`self` will be dropped if the result is not used" ]
503503 #[ inline]
504- pub fn into_string ( self : Box < str > ) -> String {
504+ pub fn into_string ( self : Box < Self > ) -> String {
505505 let slice = Box :: < [ u8 ] > :: from ( self ) ;
506506 unsafe { String :: from_utf8_unchecked ( slice. into_vec ( ) ) }
507507 }
Original file line number Diff line number Diff line change @@ -1422,7 +1422,7 @@ impl<Ptr: DerefMut> Pin<Ptr> {
14221422 #[ stable( feature = "pin_deref_mut" , since = "1.84.0" ) ]
14231423 #[ must_use = "`self` will be dropped if the result is not used" ]
14241424 #[ inline( always) ]
1425- pub fn as_deref_mut ( self : Pin < & mut Pin < Ptr > > ) -> Pin < & mut Ptr :: Target > {
1425+ pub fn as_deref_mut ( self : Pin < & mut Self > ) -> Pin < & mut Ptr :: Target > {
14261426 // SAFETY: What we're asserting here is that going from
14271427 //
14281428 // Pin<&mut Pin<Ptr>>
Original file line number Diff line number Diff line change @@ -1040,7 +1040,7 @@ impl OsStr {
10401040 /// Converts a <code>[Box]<[OsStr]></code> into an [`OsString`] without copying or allocating.
10411041 #[ stable( feature = "into_boxed_os_str" , since = "1.20.0" ) ]
10421042 #[ must_use = "`self` will be dropped if the result is not used" ]
1043- pub fn into_os_string ( self : Box < OsStr > ) -> OsString {
1043+ pub fn into_os_string ( self : Box < Self > ) -> OsString {
10441044 let boxed = unsafe { Box :: from_raw ( Box :: into_raw ( self ) as * mut Slice ) } ;
10451045 OsString { inner : Buf :: from_box ( boxed) }
10461046 }
Original file line number Diff line number Diff line change @@ -3163,7 +3163,7 @@ impl Path {
31633163 /// allocating.
31643164 #[ stable( feature = "into_boxed_path" , since = "1.20.0" ) ]
31653165 #[ must_use = "`self` will be dropped if the result is not used" ]
3166- pub fn into_path_buf ( self : Box < Path > ) -> PathBuf {
3166+ pub fn into_path_buf ( self : Box < Self > ) -> PathBuf {
31673167 let rw = Box :: into_raw ( self ) as * mut OsStr ;
31683168 let inner = unsafe { Box :: from_raw ( rw) } ;
31693169 PathBuf { inner : OsString :: from ( inner) }
You can’t perform that action at this time.
0 commit comments