File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed
Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 118118#![ feature( const_waker) ]
119119#![ feature( core_intrinsics) ]
120120#![ feature( core_panic) ]
121+ #![ feature( deprecated_suggestion) ]
121122#![ feature( dispatch_from_dyn) ]
122123#![ feature( error_generic_member_access) ]
123124#![ feature( error_in_core) ]
Original file line number Diff line number Diff line change @@ -592,7 +592,7 @@ impl<T> [T] {
592592 /// ```
593593 #[ rustc_allow_incoherent_impl]
594594 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
595- #[ deprecated( since = "1.3.0" , note = "renamed to join" ) ]
595+ #[ deprecated( since = "1.3.0" , note = "renamed to join" , suggestion = "join" ) ]
596596 pub fn connect < Separator > ( & self , sep : Separator ) -> <Self as Join < Separator > >:: Output
597597 where
598598 Self : Join < Separator > ,
Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ pub const unsafe fn size_of_val_raw<T: ?Sized>(val: *const T) -> usize {
413413#[ inline]
414414#[ must_use]
415415#[ stable( feature = "rust1" , since = "1.0.0" ) ]
416- #[ deprecated( note = "use `align_of` instead" , since = "1.2.0" ) ]
416+ #[ deprecated( note = "use `align_of` instead" , since = "1.2.0" , suggestion = "align_of" ) ]
417417pub fn min_align_of < T > ( ) -> usize {
418418 intrinsics:: min_align_of :: < T > ( )
419419}
@@ -436,7 +436,7 @@ pub fn min_align_of<T>() -> usize {
436436#[ inline]
437437#[ must_use]
438438#[ stable( feature = "rust1" , since = "1.0.0" ) ]
439- #[ deprecated( note = "use `align_of_val` instead" , since = "1.2.0" ) ]
439+ #[ deprecated( note = "use `align_of_val` instead" , since = "1.2.0" , suggestion = "align_of_val" ) ]
440440pub fn min_align_of_val < T : ?Sized > ( val : & T ) -> usize {
441441 // SAFETY: val is a reference, so it's a valid raw pointer
442442 unsafe { intrinsics:: min_align_of_val ( val) }
Original file line number Diff line number Diff line change @@ -993,7 +993,7 @@ impl str {
993993
994994 /// An iterator over the lines of a string.
995995 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
996- #[ deprecated( since = "1.4.0" , note = "use lines() instead now" ) ]
996+ #[ deprecated( since = "1.4.0" , note = "use lines() instead now" , suggestion = "lines" ) ]
997997 #[ inline]
998998 #[ allow( deprecated) ]
999999 pub fn lines_any ( & self ) -> LinesAny < ' _ > {
You can’t perform that action at this time.
0 commit comments