Skip to content

Renaming use alias renames the aliased symbol instead #5671

Open
@Veetaha

Description

@Veetaha

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) fn bar() {}
}

use foo::bar as baz;

pub fn run() {
    baz();
}

demo

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions