Ideally, when a deprecation happens because of a rename, cargo fix could rename it for you.
We could make the deprecation warning issue the correct suggestion by adding another field to the rustc_deprecated attribute, as in:
#[rustc_deprecated(renamed = "std::str::str::trim_start")]
Ideally, when a deprecation happens because of a rename,
cargo fixcould rename it for you.We could make the deprecation warning issue the correct suggestion by adding another field to the
rustc_deprecatedattribute, as in:#[rustc_deprecated(renamed = "std::str::str::trim_start")]