Skip to content

Allow for future deprecation #30785

Closed
Closed
@aturon

Description

@aturon

We've long wanted the ability to say "deprecated since" for a future version of Rust. The motivation is that, currently, deprecation goes into effect immediately, even though in some cases the replacement for the deprecated item hasn't hit the stable channel yet. By "timing" the deprecation to a given release, we can make the decision and land the replacement, and have it automatically go into effect at the right time.

The idea would be that the deprecation does not warn until the compiler version is at least the version labeling the deprecation.

We could also pipe this information into rustdoc, to give a heads up on the forthcoming deprecation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions