-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Open
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.L-deprecatedLint: deprecatedLint: deprecatedT-langRelevant to the language teamRelevant to the language team
Description
This would allow a module to rename an identifier without breaking users, and provide a message that they should change.
Example:
mod foo {
#[deprecated(reason = "use Foo instead")]
pub use self::Foo as Bar;
pub struct Foo(pub i32);
}
use self::foo::Bar; // <- deprecrated, use Foo instead
pitdicker, WaffleLapkin, ValarDragon, nashley, cdriehuys and 23 more
Metadata
Metadata
Assignees
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.L-deprecatedLint: deprecatedLint: deprecatedT-langRelevant to the language teamRelevant to the language team