Skip to content

Commit

Permalink
Rollup merge of rust-lang#69754 - Dylnuge:dylnuge/dep-version, r=Mark…
Browse files Browse the repository at this point in the history
…-Simulacrum

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.

Fixes rust-lang#69751
  • Loading branch information
Centril authored Mar 7, 2020
2 parents 6a9ec75 + 9afbf28 commit 49eae8a
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 49eae8a

Please sign in to comment.