You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd expect that renaming the alias would rename the alias itself, but not the underlying symbol (especially if the underlying symbol comes from std or some other crate):
Code to play with:
mod foo {pub(crate)fnbar(){}}use foo::bar as baz;pubfnrun(){baz();}
The text was updated successfully, but these errors were encountered:
9148: minor: Prevent renaming of aliases on usages r=Veykril a=Veykril
Otherwise trying to rename a usage that goes through an alias will still rename the aliased item instead, cc #5671
bors r+
Co-authored-by: Lukas Wirth <[email protected]>
mod folding {mod ascii {pubfneq(){}}pubuse ascii::eq as ascii_case_eq;}pubuse folding::ascii_case_eq;
Renaming eq function in the ascii module to case_eq leaves the alias in the folding module untouched but renames the outermost pub use folding::ascii_case_eq to pub use folding::case_eq.
I'd expect that renaming the alias would rename the alias itself, but not the underlying symbol (especially if the underlying symbol comes from
std
or some other crate):Code to play with:
The text was updated successfully, but these errors were encountered: