Skip to content

Commit

Permalink
Update deprecation version to 1.42 for Error::description
Browse files Browse the repository at this point in the history
Error::description is deprecated as of version 1.42, as the commit was
not in the release for 1.41.
  • Loading branch information
dylnuge committed Mar 6, 2020
1 parent b818ccc commit 9afbf28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ pub trait Error: Debug + Display {
/// }
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_deprecated(since = "1.41.0", reason = "use the Display impl or to_string()")]
#[rustc_deprecated(since = "1.42.0", reason = "use the Display impl or to_string()")]
fn description(&self) -> &str {
"description() is deprecated; use Display"
}
Expand Down

0 comments on commit 9afbf28

Please sign in to comment.