Add suggestion for some #[deprecated] items

This commit is contained in:
Dmitry Murzin
2023-08-21 12:51:51 +03:00
parent 4dbc7e3092
commit 07b57f9a7a
7 changed files with 21 additions and 5 deletions

View File

@@ -993,7 +993,7 @@ impl str {
/// An iterator over the lines of a string.
#[stable(feature = "rust1", since = "1.0.0")]
#[deprecated(since = "1.4.0", note = "use lines() instead now")]
#[deprecated(since = "1.4.0", note = "use lines() instead now", suggestion = "lines")]
#[inline]
#[allow(deprecated)]
pub fn lines_any(&self) -> LinesAny<'_> {