Skip to content

Commit 9afbf28

Browse files
committed
Update deprecation version to 1.42 for Error::description
Error::description is deprecated as of version 1.42, as the commit was not in the release for 1.41.
1 parent b818ccc commit 9afbf28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ pub trait Error: Debug + Display {
135135
/// }
136136
/// ```
137137
#[stable(feature = "rust1", since = "1.0.0")]
138-
#[rustc_deprecated(since = "1.41.0", reason = "use the Display impl or to_string()")]
138+
#[rustc_deprecated(since = "1.42.0", reason = "use the Display impl or to_string()")]
139139
fn description(&self) -> &str {
140140
"description() is deprecated; use Display"
141141
}

0 commit comments

Comments
 (0)