Open
Description
opened on Jan 11, 2016
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
Activity