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 118
118
#![ feature( const_waker) ]
119
119
#![ feature( core_intrinsics) ]
120
120
#![ feature( core_panic) ]
121
+ #![ feature( deprecated_suggestion) ]
121
122
#![ feature( dispatch_from_dyn) ]
122
123
#![ feature( error_generic_member_access) ]
123
124
#![ feature( error_in_core) ]
Original file line number Diff line number Diff line change @@ -592,7 +592,7 @@ impl<T> [T] {
592
592
/// ```
593
593
#[ rustc_allow_incoherent_impl]
594
594
#[ 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" ) ]
596
596
pub fn connect < Separator > ( & self , sep : Separator ) -> <Self as Join < Separator > >:: Output
597
597
where
598
598
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 {
413
413
#[ inline]
414
414
#[ must_use]
415
415
#[ 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" ) ]
417
417
pub fn min_align_of < T > ( ) -> usize {
418
418
intrinsics:: min_align_of :: < T > ( )
419
419
}
@@ -436,7 +436,7 @@ pub fn min_align_of<T>() -> usize {
436
436
#[ inline]
437
437
#[ must_use]
438
438
#[ 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" ) ]
440
440
pub fn min_align_of_val < T : ?Sized > ( val : & T ) -> usize {
441
441
// SAFETY: val is a reference, so it's a valid raw pointer
442
442
unsafe { intrinsics:: min_align_of_val ( val) }
Original file line number Diff line number Diff line change @@ -993,7 +993,7 @@ impl str {
993
993
994
994
/// An iterator over the lines of a string.
995
995
#[ 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" ) ]
997
997
#[ inline]
998
998
#[ allow( deprecated) ]
999
999
pub fn lines_any ( & self ) -> LinesAny < ' _ > {
You can’t perform that action at this time.
0 commit comments