Auto merge of #95960 - jhpratt:remove-rustc_deprecated, r=compiler-errors
Remove `#[rustc_deprecated]` This removes `#[rustc_deprecated]` and introduces diagnostics to help users to the right direction (that being `#[deprecated]`). All uses of `#[rustc_deprecated]` have been converted. CI is expected to fail initially; this requires #95958, which includes converting `stdarch`. I plan on following up in a short while (maybe a bootstrap cycle?) removing the diagnostics, as they're only intended to be short-term.
This commit is contained in:
@@ -145,15 +145,15 @@ pub trait Error: Debug + Display {
|
||||
/// }
|
||||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_deprecated(since = "1.42.0", reason = "use the Display impl or to_string()")]
|
||||
#[deprecated(since = "1.42.0", note = "use the Display impl or to_string()")]
|
||||
fn description(&self) -> &str {
|
||||
"description() is deprecated; use Display"
|
||||
}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_deprecated(
|
||||
#[deprecated(
|
||||
since = "1.33.0",
|
||||
reason = "replaced by Error::source, which can support downcasting"
|
||||
note = "replaced by Error::source, which can support downcasting"
|
||||
)]
|
||||
#[allow(missing_docs)]
|
||||
fn cause(&self) -> Option<&dyn Error> {
|
||||
|
||||
Reference in New Issue
Block a user