Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generator: Remove deprecated description() impl for Error #425

Merged
merged 1 commit into from
Apr 27, 2021

Conversation

MarijnS95
Copy link
Collaborator

The docs clearly state:

#[rustc_deprecated(since = "1.42.0", reason = "use the Display impl or to_string()")]
fn description(&self) -> &str {
    "description() is deprecated; use Display"
}

We already have a Display implementation containing an identical match block and has further improvements on the way in 1.

The docs clearly state:

    #[rustc_deprecated(since = "1.42.0", reason = "use the Display impl or to_string()")]
    fn description(&self) -> &str {
        "description() is deprecated; use Display"
    }

We already have a `Display` implementation containing an identical
`match` block and has further improvements on the way in [1].

[1]: #424
@MarijnS95 MarijnS95 merged commit 3fe13fa into master Apr 27, 2021
@MarijnS95 MarijnS95 deleted the deprecated-error-description branch April 27, 2021 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants