Skip to content

Derives on deprecated items generate deprecation warnings #58822

Closed
@cramertj

Description

@cramertj

The following code generates a warning on nightly and beta but not on stable:

#[deprecated = "oh no"]
#[derive(Default)]
struct X;

Metadata

Metadata

Assignees

Labels

A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.E-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustcP-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions